FancyMainWindow: Add a way to make the layout immutable

To be used in the new Project mode main window to prevent accidental
closing of the navigation dock.

Change-Id: Id8970ab80a91113e97a9f9a07b9dfb12b9cb0e30
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
hjk
2016-07-22 15:53:11 +02:00
committed by Alessandro Portale
parent 3a9e459408
commit d258d47b42
2 changed files with 30 additions and 21 deletions

View File

@@ -47,7 +47,7 @@ public:
/* The widget passed in should have an objectname set
* which will then be used as key for QSettings. */
QDockWidget *addDockForWidget(QWidget *widget);
QDockWidget *addDockForWidget(QWidget *widget, bool immutable = false);
QList<QDockWidget *> dockWidgets() const;
void setTrackingEnabled(bool enabled);