Gui: Restore proper object names for panels
This commit is contained in:
committed by
Benjamin Nauck
parent
ffbeb1fb4e
commit
238975a455
@@ -276,10 +276,7 @@ QDockWidget* DockWindowManager::addDockWindow(const char* name, QWidget* widget,
|
||||
|
||||
// set object name and window title needed for i18n stuff
|
||||
dw->setObjectName(QString::fromUtf8(name));
|
||||
QString title = widget->windowTitle();
|
||||
if (title.isEmpty())
|
||||
title = QDockWidget::tr(name);
|
||||
dw->setWindowTitle(title);
|
||||
dw->setWindowTitle(widget->windowTitle());
|
||||
dw->setFeatures(QDockWidget::DockWidgetClosable
|
||||
| QDockWidget::DockWidgetMovable
|
||||
| QDockWidget::DockWidgetFloatable);
|
||||
|
||||
Reference in New Issue
Block a user