QDockWidget:AllDockWidgetFeatures is deprecated. Use individual flags instead.
This commit is contained in:
committed by
wwmayer
parent
5b755c20b5
commit
73a077ae01
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user