summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJoão Abecasis <joao@abecasis.name>2009-07-09 08:55:37 (GMT)
committerJoão Abecasis <joao@abecasis.name>2009-07-09 09:47:19 (GMT)
commited99255e8e998ef3f51de22b31c76107bb9aa0df (patch)
treeafc614dde0df2ce478db1bb2a47fb1543f93ff78 /tools
parentd64754db278e9fe07dbd6c8b7d297600a10d3ae5 (diff)
downloadQt-ed99255e8e998ef3f51de22b31c76107bb9aa0df.zip
Qt-ed99255e8e998ef3f51de22b31c76107bb9aa0df.tar.gz
Qt-ed99255e8e998ef3f51de22b31c76107bb9aa0df.tar.bz2
Designer: Restore Widget box title when switching to docked mode
Reviewed-by: Friedemann Kleint
Diffstat (limited to 'tools')
-rw-r--r--tools/designer/src/designer/qdesigner_workbench.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/designer/src/designer/qdesigner_workbench.cpp b/tools/designer/src/designer/qdesigner_workbench.cpp
index 5f8d2a9..c9d9fc4 100644
--- a/tools/designer/src/designer/qdesigner_workbench.cpp
+++ b/tools/designer/src/designer/qdesigner_workbench.cpp
@@ -410,6 +410,12 @@ void QDesignerWorkbench::switchToDockedMode()
switchToNeutralMode();
+#ifndef Q_WS_MAC
+ QDesignerToolWindow *widgetBoxWrapper = widgetBoxToolWindow();
+ widgetBoxWrapper->action()->setVisible(true);
+ widgetBoxWrapper->setWindowTitle(tr("Widget Box"));
+#endif
+
m_mode = DockedMode;
const QDesignerSettings settings(m_core);
m_dockedMainWindow = new DockedMainWindow(this, m_toolbarMenu, m_toolWindows);