aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/analyzerbase/analyzerconstants.h
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2011-07-15 10:21:38 +0200
committerhjk <qthjk@ovi.com>2011-07-15 11:00:56 +0200
commitdbc0fa091926926ff6e26d3fcae74a596512798b (patch)
treead56cd7093b86014ccb71d102f8bdcda705ef0a0 /src/plugins/analyzerbase/analyzerconstants.h
parent8e3c9c0670615ab58e4e96df3066a3b6b8c27841 (diff)
analyzer: cleanup string constant usage
Change-Id: I9fcff37c06f98d0010dccfdece567dae7b0264bd Reviewed-on: http://codereview.qt.nokia.com/1691 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/plugins/analyzerbase/analyzerconstants.h')
-rw-r--r--src/plugins/analyzerbase/analyzerconstants.h44
1 files changed, 17 insertions, 27 deletions
diff --git a/src/plugins/analyzerbase/analyzerconstants.h b/src/plugins/analyzerbase/analyzerconstants.h
index 23f15e7b80..c22b5a5e06 100644
--- a/src/plugins/analyzerbase/analyzerconstants.h
+++ b/src/plugins/analyzerbase/analyzerconstants.h
@@ -39,7 +39,7 @@
namespace Analyzer {
-// Special values for currently used modes.
+// Special values for currently used start modes.
// Their meaning is interpreted by the individual tools.
// FIXME: The plan is to remove this entirely from the
// public interface and let the tools handle that internally.
@@ -53,38 +53,28 @@ enum StartMode
namespace Constants {
-// modes and their priorities
-const char * const MODE_ANALYZE = "Mode.Analyze";
-const int P_MODE_ANALYZE = 76;
+// Mode and its priority.
+const char MODE_ANALYZE[] = "Mode.Analyze";
+const int P_MODE_ANALYZE = 76;
-// context
-const char * const C_ANALYZEMODE = "Analyzer.AnalyzeMode";
+// Context.
+const char C_ANALYZEMODE[] = "Analyzer.AnalyzeMode";
-// menu
-const char * const M_DEBUG_ANALYZER = "Analyzer.Menu.StartAnalyzer";
+// Menu.
+const char M_DEBUG_ANALYZER[] = "Analyzer.Menu.StartAnalyzer";
-const char * const START = "Analyzer.Start";
-const char * const STARTREMOTE = "Analyzer.StartRemote";
-const char * const STOP = "Analyzer.Stop";
+const char START[] = "Analyzer.Start";
+const char STOP[] = "Analyzer.Stop";
-const char * const G_ANALYZER_CONTROL = "Menu.Group.Analyzer.Control";
-const char * const G_ANALYZER_TOOLS = "Menu.Group.Analyzer.Tools";
-const char * const G_ANALYZER_REMOTE_TOOLS = "Menu.Group.Analyzer.RemoteTools";
+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";
-// options dialog
-const char * const ANALYZER_SETTINGS_CATEGORY = "T.Analyzer";
-const char * const ANALYZER_SETTINGS_TR_CATEGORY =
- QT_TRANSLATE_NOOP("Analyzer", "Analyzer");
-const char * const ANALYZER_SETTINGS_CATEGORY_ICON =
- ":/images/analyzer_category.png";
+// Manager controls.
+const char ANALYZER_CONTROL_START_ICON[] = ":/images/analyzer_start_small.png";
+const char ANALYZER_CONTROL_STOP_ICON[] = ":/debugger/images/debugger_stop_small.png";
-// manager controls
-const char * const ANALYZER_CONTROL_START_ICON =
- ":/images/analyzer_start_small.png";
-const char * const ANALYZER_CONTROL_STOP_ICON =
- ":/debugger/images/debugger_stop_small.png";
-
-const char * const ANALYZERTASK_ID = "Analyzer.TaskId";
+const char ANALYZERTASK_ID[] = "Analyzer.TaskId";
} // namespace Constants
} // namespace Analyzer