diff options
author | Eike Ziller <eike.ziller@qt.io> | 2020-06-16 15:56:47 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2020-06-17 06:48:17 +0000 |
commit | 0eefc5b70ddf20139e56e2b13ccd0aedf27b0d91 (patch) | |
tree | 8057ec7f505d9be5fca16bb1382a1b42df0189d9 /src/plugins/debugger/debuggerplugin.cpp | |
parent | 356d497df4bc746a9170d2e9d332f51aef7f3877 (diff) |
Add a menu to Debug mode that switches perspectives
Set a menu for switching perspectives on the debug mode icon. When icons
& text are shown for the modes, there is an additional arrow to the
right of the mode that can be clicked to open the menu. This
functionality was added in 4.1 for that purpose, finally use it.
Do not show and arrow in "Icons Only" mode, so it stays small, but make
it available on right-click as well.
Change-Id: If19877b5231b7f01f0b3fd98cf65e8eaf9da1a5f
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/debugger/debuggerplugin.cpp')
-rw-r--r-- | src/plugins/debugger/debuggerplugin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index 0606743911..5fd844d83d 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -547,6 +547,8 @@ public: mainWindow->addSubPerspectiveSwitcher(EngineManager::engineChooser()); setWidget(splitter); + + setMenu(DebuggerMainWindow::perspectiveMenu()); } ~DebugMode() { delete widget(); } |