diff options
author | Eike Ziller <[email protected]> | 2023-12-08 13:31:56 +0100 |
---|---|---|
committer | Eike Ziller <[email protected]> | 2023-12-11 08:41:53 +0000 |
commit | dd9f9c799b7d638287f78121f6699ce34f82bb40 (patch) | |
tree | 0b036d2c559f819da6e1e8c88a681cf76b75a632 /src/plugins/debugger/debuggerplugin.cpp | |
parent | c6f4fa6b18a0a98d9a8006ca7b944da07de6536f (diff) |
Support view/hide right side bar in Debug mode
Like it is now supported in Widget Designer, the view/hide action
toggles the corresponding dock widget area. We cannot do that for the
left dock widget area yet, because that action still needs to toggle the
navigation side bar.
To support this, we need to save not only the QMainWindow state for the
debugger perspectives, but the whole FancyMainWindow state including the
information about hidden dock widget areas. Unfortunately the
PerspectiveState was serialized to QVariant without versioning, so
keeping it that way is difficult. Switch saving&restoring of
PerspectiveState to Utils::Store (and keep some compatibility code).
Change-Id: I0035841930c6a574aeb31650a28be9989e2b5741
Reviewed-by: Marcus Tillmanns <[email protected]>
Reviewed-by: <[email protected]>
Diffstat (limited to 'src/plugins/debugger/debuggerplugin.cpp')
-rw-r--r-- | src/plugins/debugger/debuggerplugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index cbfe4b7b2b6..1a5b9ad21e4 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -512,6 +512,7 @@ public: mainWindow->addSubPerspectiveSwitcher(EngineManager::dapEngineChooser()); setWidget(splitter); + setMainWindow(mainWindow); setMenu(DebuggerMainWindow::perspectiveMenu()); } |