summaryrefslogtreecommitdiff
path: root/src/plugins/analyzerbase/analyzermanager.cpp
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2014-09-29 17:03:25 +0200
committerhjk <hjk121@nokiamail.com>2014-10-09 17:17:40 +0200
commitc17b540fd42ba3520c6f6a447c06910621dd5d9c (patch)
tree820810795061af06e71a647cf3b64e444fc77d1e /src/plugins/analyzerbase/analyzermanager.cpp
parentab34b23e1025cc38d813fed8f405185ffb5b2a66 (diff)
downloadqt-creator-c17b540fd42ba3520c6f6a447c06910621dd5d9c.tar.gz
Re-introduce option to toggle FancyMainWindow auto-hiding
This reverts commit 1541fbd2ba8e9d3c12ebdea74453e7e597d961d5 in parts. The title bars can now always be shown (the same state as the old "Unlocked" state) or not always be shown (the previously "new" behavior). The default is now "Always shown". Hopefully that makes hiding the titlebars a conscious (usually one-time) activity that's not forgotten. Change-Id: Id31fb193b2eb6376000c845d4a61194e2ed33129 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/analyzerbase/analyzermanager.cpp')
-rw-r--r--src/plugins/analyzerbase/analyzermanager.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/plugins/analyzerbase/analyzermanager.cpp b/src/plugins/analyzerbase/analyzermanager.cpp
index 45089c6068..8a99fbfd09 100644
--- a/src/plugins/analyzerbase/analyzermanager.cpp
+++ b/src/plugins/analyzerbase/analyzermanager.cpp
@@ -290,10 +290,18 @@ void AnalyzerManagerPrivate::delayedInit()
// Populate Windows->Views menu with standard actions.
Context analyzerContext(C_ANALYZEMODE);
ActionContainer *viewsMenu = Core::ActionManager::actionContainer(Id(M_WINDOW_VIEWS));
- Command *cmd = Core::ActionManager::registerAction(m_mainWindow->menuSeparator(),
+ Command *cmd = Core::ActionManager::registerAction(m_mainWindow->menuSeparator1(),
"Analyzer.Views.Separator1", analyzerContext);
cmd->setAttribute(Command::CA_Hide);
viewsMenu->addAction(cmd, G_DEFAULT_THREE);
+ cmd = Core::ActionManager::registerAction(m_mainWindow->autoHideTitleBarsAction(),
+ "Analyzer.Views.AutoHideTitleBars", analyzerContext);
+ cmd->setAttribute(Command::CA_Hide);
+ viewsMenu->addAction(cmd, G_DEFAULT_THREE);
+ cmd = Core::ActionManager::registerAction(m_mainWindow->menuSeparator2(),
+ "Analyzer.Views.Separator2", analyzerContext);
+ cmd->setAttribute(Command::CA_Hide);
+ viewsMenu->addAction(cmd, G_DEFAULT_THREE);
cmd = Core::ActionManager::registerAction(m_mainWindow->resetLayoutAction(),
"Analyzer.Views.ResetSimple", analyzerContext);
cmd->setAttribute(Command::CA_Hide);