Make AddingOption_StartHidden also work for tabs

You can now pass that option to DockWidget::addDockWidgetAsTab().
This commit is contained in:
Sergio Martins
2020-02-19 16:33:22 +00:00
parent 61303b14a7
commit 579b222418
5 changed files with 49 additions and 25 deletions

View File

@@ -100,9 +100,12 @@ public:
/**
* @brief docks @p other widget into this one. Tabs will be shown if not already.
* @param other The other dock widget to dock into this one.
* @param addingOption Allows to specify an AddingOption. Which is useful to add the dock widget
* as hidden, recording only a placeholder in the tab. So it's restored to tabbed when eventually
* shown.
* @sa MainWindow::addDockWidget(), DockWidget::addDockWidgetToContainingWindow()
*/
void addDockWidgetAsTab(DockWidgetBase *other);
void addDockWidgetAsTab(DockWidgetBase *other, AddingOption addingOption = AddingOption_None);
/**
* @brief docks @p other widget into the window that contains this one.