summaryrefslogtreecommitdiff
path: root/tools/designer/src
diff options
context:
space:
mode:
authorJoão Abecasis <joao@abecasis.name>2009-07-09 10:55:37 +0200
committerJoão Abecasis <joao@abecasis.name>2009-07-09 11:47:19 +0200
commited99255e8e998ef3f51de22b31c76107bb9aa0df (patch)
treeafc614dde0df2ce478db1bb2a47fb1543f93ff78 /tools/designer/src
parentd64754db278e9fe07dbd6c8b7d297600a10d3ae5 (diff)
downloadqt4-tools-ed99255e8e998ef3f51de22b31c76107bb9aa0df.tar.gz
Designer: Restore Widget box title when switching to docked mode
Reviewed-by: Friedemann Kleint
Diffstat (limited to 'tools/designer/src')
-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 5f8d2a9a39..c9d9fc4702 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);