Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Avoid dialog 'flashing' when opening annotation properties
(cherry-picked from a798ba0)
  • Loading branch information
nyalldawson committed Jul 26, 2016
1 parent 6539ae1 commit 89b0a72
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/app/qgsformannotationdialog.cpp
Expand Up @@ -26,7 +26,6 @@ QgsFormAnnotationDialog::QgsFormAnnotationDialog( QgsFormAnnotationItem* item, Q
{
setupUi( this );
mEmbeddedWidget = new QgsAnnotationWidget( mItem );
mEmbeddedWidget->show();
mStackedWidget->addWidget( mEmbeddedWidget );
mStackedWidget->setCurrentWidget( mEmbeddedWidget );

Expand Down
1 change: 0 additions & 1 deletion src/app/qgshtmlannotationdialog.cpp
Expand Up @@ -27,7 +27,6 @@ QgsHtmlAnnotationDialog::QgsHtmlAnnotationDialog( QgsHtmlAnnotationItem* item, Q
setupUi( this );
setWindowTitle( tr( "HTML annotation" ) );
mEmbeddedWidget = new QgsAnnotationWidget( mItem );
mEmbeddedWidget->show();
mStackedWidget->addWidget( mEmbeddedWidget );
mStackedWidget->setCurrentWidget( mEmbeddedWidget );

Expand Down
1 change: 0 additions & 1 deletion src/app/qgssvgannotationdialog.cpp
Expand Up @@ -28,7 +28,6 @@ QgsSvgAnnotationDialog::QgsSvgAnnotationDialog( QgsSvgAnnotationItem* item, QWid
setupUi( this );
setWindowTitle( tr( "SVG annotation" ) );
mEmbeddedWidget = new QgsAnnotationWidget( mItem );
mEmbeddedWidget->show();
mStackedWidget->addWidget( mEmbeddedWidget );
mStackedWidget->setCurrentWidget( mEmbeddedWidget );

Expand Down
1 change: 0 additions & 1 deletion src/app/qgstextannotationdialog.cpp
Expand Up @@ -25,7 +25,6 @@ QgsTextAnnotationDialog::QgsTextAnnotationDialog( QgsTextAnnotationItem* item, Q
{
setupUi( this );
mEmbeddedWidget = new QgsAnnotationWidget( mItem );
mEmbeddedWidget->show();
mStackedWidget->addWidget( mEmbeddedWidget );
mStackedWidget->setCurrentWidget( mEmbeddedWidget );
if ( mItem )
Expand Down

0 comments on commit 89b0a72

Please sign in to comment.