summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qmainwindow.h
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2015-03-05 11:00:53 +0100
committerOlivier Goffart (Woboq GmbH) <ogoffart@woboq.com>2015-05-12 10:07:20 +0000
commitac1b6c01454b8969e59becf066bba14f9ed0d310 (patch)
tree812c3f05dbf3f053a38e1f12f6676fec35becbbd /src/widgets/widgets/qmainwindow.h
parent84be950e98fe44cc62a352de082f2c2d76915128 (diff)
Add QMainWindow::GroupedDragging DockOption
If this setting is enabled, the entire group of docked tabs will be draggable by the title bar of the group and and individual dock can be dragged by dragging the tab. When tabs are detached, the docks that are contained are reparented to a QDockWidgetGroupWindow. [ChangeLog][QtWidgets][QMainWindow] Added GroupedDragging as a DockOption which allow users to drag all the tabs together when dragging the title of a QDockWidget which is tabbed with others. Change-Id: I5285685b129770498eb3e4fd5f4556e41225a595 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Paul Olav Tvete <paul.tvete@theqtcompany.com>
Diffstat (limited to 'src/widgets/widgets/qmainwindow.h')
-rw-r--r--src/widgets/widgets/qmainwindow.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/widgets/widgets/qmainwindow.h b/src/widgets/widgets/qmainwindow.h
index cbbea74b9b..0bd70c87a6 100644
--- a/src/widgets/widgets/qmainwindow.h
+++ b/src/widgets/widgets/qmainwindow.h
@@ -77,7 +77,8 @@ public:
AllowNestedDocks = 0x02,
AllowTabbedDocks = 0x04,
ForceTabbedDocks = 0x08, // implies AllowTabbedDocks, !AllowNestedDocks
- VerticalTabs = 0x10 // implies AllowTabbedDocks
+ VerticalTabs = 0x10, // implies AllowTabbedDocks
+ GroupedDragging = 0x20 // implies AllowTabbedDocks
};
Q_ENUM(DockOption)
Q_DECLARE_FLAGS(DockOptions, DockOption)