Skip to content

Commit

Permalink
[composer] Allow floating docks
Browse files Browse the repository at this point in the history
Now that composer windows are deleted on close, we no longer
suffer from the Qt bug which keeps floating docks open when
the window is hidden
  • Loading branch information
nyalldawson committed Mar 21, 2017
1 parent 9be22e1 commit 8478b7a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/composer/qgscomposer.cpp
Expand Up @@ -115,7 +115,9 @@ QgsComposer::QgsComposer( QgsComposition *composition )
setupUi( this );
setWindowTitle( mComposition->name() );
setAttribute( Qt::WA_DeleteOnClose );

#if QT_VERSION >= 0x050600
setDockOptions( dockOptions() | QMainWindow::GroupedDragging ) ;
#endif
setupTheme();

QgsSettings settings;
Expand Down Expand Up @@ -581,7 +583,6 @@ QgsComposer::QgsComposer( QgsComposition *composition )
QList<QDockWidget *> docks = findChildren<QDockWidget *>();
Q_FOREACH ( QDockWidget *dock, docks )
{
dock->setFeatures( QDockWidget::DockWidgetMovable | QDockWidget::DockWidgetClosable );
connect( dock, &QDockWidget::visibilityChanged, this, &QgsComposer::dockVisibilityChanged );
}

Expand Down

0 comments on commit 8478b7a

Please sign in to comment.