Added DockWidget::isPersistentCentralDockWidget()

This commit is contained in:
Sergio Martins
2021-09-02 10:24:43 +01:00
parent f962989484
commit 77b5d1630d
4 changed files with 11 additions and 0 deletions

View File

@@ -80,6 +80,7 @@ public:
return nullptr;
auto dw = new DockWidgetType(QStringLiteral("%1-persistentCentralDockWidget").arg(uniqueName));
dw->dptr()->m_isPersistentCentralDockWidget = true;
Frame *frame = dropArea()->m_centralFrame;
if (!frame) {
qWarning() << Q_FUNC_INFO << "Expected central frame";