Skip to content

Commit

Permalink
QDockWidget:AllDockWidgetFeatures is deprecated. Use individual flags…
Browse files Browse the repository at this point in the history
… instead.
  • Loading branch information
f3nix authored and wwmayer committed Apr 4, 2021
1 parent 5b755c2 commit 73a077a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/Gui/Control.cpp
Expand Up @@ -226,7 +226,9 @@ void ControlSingleton::closedDialog()
// make sure that the combo view is shown
QDockWidget* dw = qobject_cast<QDockWidget*>(pcComboView->parentWidget());
if (dw)
dw->setFeatures(QDockWidget::AllDockWidgetFeatures);
dw->setFeatures(QDockWidget::DockWidgetClosable
| QDockWidget::DockWidgetMovable
| QDockWidget::DockWidgetFloatable);
}

bool ControlSingleton::isAllowedAlterDocument(void) const
Expand Down
4 changes: 3 additions & 1 deletion src/Gui/DockWindowManager.cpp
Expand Up @@ -155,7 +155,9 @@ QDockWidget* DockWindowManager::addDockWindow(const char* name, QWidget* widget,
// set object name and window title needed for i18n stuff
dw->setObjectName(QLatin1String(name));
dw->setWindowTitle(QDockWidget::tr(name));
dw->setFeatures(QDockWidget::AllDockWidgetFeatures);
dw->setFeatures(QDockWidget::DockWidgetClosable
| QDockWidget::DockWidgetMovable
| QDockWidget::DockWidgetFloatable);

d->_dockedWindows.push_back(dw);
return dw;
Expand Down

0 comments on commit 73a077a

Please sign in to comment.