Add a force close to DockWidgetBase::Private

So we can add an argument there, without changing public API
This commit is contained in:
Sergio Martins
2021-01-28 22:19:21 +00:00
parent 1f74ba43f0
commit e9d19805d7
2 changed files with 10 additions and 2 deletions

View File

@@ -325,8 +325,7 @@ QIcon DockWidgetBase::icon(IconPlace place) const
void DockWidgetBase::forceClose()
{
QScopedValueRollback<bool> rollback(d->m_isForceClosing, true);
d->close();
d->forceClose();
}
TitleBar *DockWidgetBase::titleBar() const
@@ -806,3 +805,9 @@ LayoutSaver::DockWidget::Ptr DockWidgetBase::serialize() const
return ptr;
}
void DockWidgetBase::Private::forceClose()
{
QScopedValueRollback<bool> rollback(m_isForceClosing, true);
close();
}