Skip to content
Permalink
Browse files
[composer] Allow floating docks
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 8478b7abdfe686a6cd129b82895197b63dd5ea8a
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/app/composer/qgscomposer.cpp
@@ -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;
@@ -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 );
}

0 comments on commit 8478b7a

Please sign in to comment.