diff options
author | João Abecasis <joao@abecasis.name> | 2009-07-08 17:21:37 (GMT) |
---|---|---|
committer | João Abecasis <joao@abecasis.name> | 2009-07-09 09:47:18 (GMT) |
commit | d64754db278e9fe07dbd6c8b7d297600a10d3ae5 (patch) | |
tree | 3734b740c1a11a559909cd19364782e162783cab | |
parent | cdedc4374b02c0c291c110fd03c77eb6cd1ce69d (diff) | |
download | Qt-d64754db278e9fe07dbd6c8b7d297600a10d3ae5.zip Qt-d64754db278e9fe07dbd6c8b7d297600a10d3ae5.tar.gz Qt-d64754db278e9fe07dbd6c8b7d297600a10d3ae5.tar.bz2 |
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.
-rw-r--r-- | tools/designer/src/designer/qdesigner_workbench.cpp | 4 |
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 ce8dde6..5f8d2a9 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(); |