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

@@ -131,7 +131,7 @@ DockWidgetBase::~DockWidgetBase()
delete d;
}
void DockWidgetBase::addDockWidgetAsTab(DockWidgetBase *other)
void DockWidgetBase::addDockWidgetAsTab(DockWidgetBase *other, AddingOption addingOption)
{
qCDebug(addwidget) << Q_FUNC_INFO << other;
if (other == this) {
@@ -167,7 +167,7 @@ void DockWidgetBase::addDockWidgetAsTab(DockWidgetBase *other)
Q_ASSERT(frame);
other->setParent(nullptr);
frame->addWidget(other);
frame->addWidget(other, addingOption);
}
void DockWidgetBase::addDockWidgetToContainingWindow(DockWidgetBase *other, Location location, DockWidgetBase *relativeTo)