From ef0a19d9267d06d1cf4e91c62cee2e38e09a7522 Mon Sep 17 00:00:00 2001 From: hjk <qtc-committer@nokia.com> Date: Thu, 4 Aug 2011 11:25:26 +0200 Subject: [PATCH] analyzer: less global symbols Change-Id: I2f771c7dc2a709611c68b97a5287804d4b8590fd Reviewed-on: http://codereview.qt.nokia.com/2632 Reviewed-by: hjk <qthjk@ovi.com> --- src/plugins/analyzerbase/analyzerconstants.h | 3 --- src/plugins/analyzerbase/analyzermanager.cpp | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/plugins/analyzerbase/analyzerconstants.h b/src/plugins/analyzerbase/analyzerconstants.h index c22b5a5e06e..948bcd2014a 100644 --- a/src/plugins/analyzerbase/analyzerconstants.h +++ b/src/plugins/analyzerbase/analyzerconstants.h @@ -63,9 +63,6 @@ const char C_ANALYZEMODE[] = "Analyzer.AnalyzeMode"; // Menu. const char M_DEBUG_ANALYZER[] = "Analyzer.Menu.StartAnalyzer"; -const char START[] = "Analyzer.Start"; -const char STOP[] = "Analyzer.Stop"; - const char G_ANALYZER_CONTROL[] = "Menu.Group.Analyzer.Control"; const char G_ANALYZER_TOOLS[] = "Menu.Group.Analyzer.Tools"; const char G_ANALYZER_REMOTE_TOOLS[] = "Menu.Group.Analyzer.RemoteTools"; diff --git a/src/plugins/analyzerbase/analyzermanager.cpp b/src/plugins/analyzerbase/analyzermanager.cpp index 7824f77fbbe..94a4c0690a7 100644 --- a/src/plugins/analyzerbase/analyzermanager.cpp +++ b/src/plugins/analyzerbase/analyzermanager.cpp @@ -281,13 +281,13 @@ void AnalyzerManagerPrivate::setupActions() m_startAction = new QAction(tr("Start"), m_menu); m_startAction->setIcon(QIcon(Constants::ANALYZER_CONTROL_START_ICON)); - command = am->registerAction(m_startAction, Constants::START, globalcontext); + command = am->registerAction(m_startAction, "Analyzer.Start", globalcontext); connect(m_startAction, SIGNAL(triggered()), this, SLOT(startTool())); m_stopAction = new QAction(tr("Stop"), m_menu); m_stopAction->setEnabled(false); m_stopAction->setIcon(QIcon(Constants::ANALYZER_CONTROL_STOP_ICON)); - command = am->registerAction(m_stopAction, Constants::STOP, globalcontext); + command = am->registerAction(m_stopAction, "Analyzer.Stop", globalcontext); m_menu->addAction(command, Constants::G_ANALYZER_CONTROL); QAction *separatorAction1 = new QAction(m_menu); -- GitLab