aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/advanceddockingsystem/dockwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/advanceddockingsystem/dockwidget.h')
-rw-r--r--src/libs/advanceddockingsystem/dockwidget.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/libs/advanceddockingsystem/dockwidget.h b/src/libs/advanceddockingsystem/dockwidget.h
index 65495cc04d..03c9222766 100644
--- a/src/libs/advanceddockingsystem/dockwidget.h
+++ b/src/libs/advanceddockingsystem/dockwidget.h
@@ -154,6 +154,8 @@ public:
enum eState { StateHidden, StateDocked, StateFloating };
+ enum eToolBarStyleSource { ToolBarStyleFromDockManager, ToolBarStyleFromDockWidget };
+
/**
* Sets the widget for the dock widget to widget.
* The InsertMode defines how the widget is inserted into the dock widget.
@@ -386,6 +388,12 @@ public:
QAction *toggleViewAction() const;
/**
+ * Use provided action to be the default toggle view action for this dock widget.
+ * This dock widget now owns the action.
+ */
+ void setToggleViewAction(QAction *action);
+
+ /**
* Configures the behavior of the toggle view action.
* \see eToggleViewActionMode for a detailed description
*/
@@ -444,6 +452,17 @@ public:
void setToolBar(QToolBar *toolBar);
/**
+ * Configures, if the dock widget uses the global tool bar styles from
+ * dock manager or if it uses its own tool bar style
+ */
+ void setToolBarStyleSource(eToolBarStyleSource source);
+
+ /**
+ * Returns the configured tool bar style source
+ */
+ eToolBarStyleSource toolBarStyleSource() const;
+
+ /**
* This function sets the tool button style for the given dock widget state.
* It is possible to switch the tool button style depending on the state.
* If a dock widget is floating, then here are more space and it is