summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJoão Abecasis <joao@abecasis.name>2009-07-08 19:21:37 +0200
committerJoão Abecasis <joao@abecasis.name>2009-07-09 11:47:18 +0200
commitd64754db278e9fe07dbd6c8b7d297600a10d3ae5 (patch)
tree3734b740c1a11a559909cd19364782e162783cab /tools
parentcdedc4374b02c0c291c110fd03c77eb6cd1ce69d (diff)
Stop showing then hiding windows on starting designer in top-level mode
Kind of like f37bd111f7622a34b3a7bd63f5a82f6042dc0f0d, but the real thing. The widget box wasn't showing on Linux when switching to top-level mode. Incidentally, this was the main window there... Reviewed-by: Friedemann Kleint After some persuasion the Cat also came to see things this way.
Diffstat (limited to 'tools')
-rw-r--r--tools/designer/src/designer/qdesigner_workbench.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/tools/designer/src/designer/qdesigner_workbench.cpp b/tools/designer/src/designer/qdesigner_workbench.cpp
index ce8dde68b4..5f8d2a9a39 100644
--- a/tools/designer/src/designer/qdesigner_workbench.cpp
+++ b/tools/designer/src/designer/qdesigner_workbench.cpp
@@ -462,7 +462,6 @@ void QDesignerWorkbench::switchToTopLevelMode()
// make sure that the widgetbox is visible if it is different from neutral.
QDesignerToolWindow *widgetBoxWrapper = widgetBoxToolWindow();
Q_ASSERT(widgetBoxWrapper);
- const bool needWidgetBoxWrapperVisible = widgetBoxWrapper->action()->isChecked();
switchToNeutralMode();
const QPoint desktopOffset = desktopGeometry().topLeft();
@@ -501,9 +500,6 @@ void QDesignerWorkbench::switchToTopLevelMode()
found_visible_window |= tw->isVisible();
}
- if (needWidgetBoxWrapperVisible)
- widgetBoxWrapper->action()->trigger();
-
if (!m_toolWindows.isEmpty() && !found_visible_window)
m_toolWindows.first()->show();