Commit dbc0fa09 authored by hjk's avatar hjk Committed by hjk
Browse files

analyzer: cleanup string constant usage

Change-Id: I9fcff37c06f98d0010dccfdece567dae7b0264bd
Reviewed-on: http://codereview.qt.nokia.com/1691

Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 8e3c9c06
......@@ -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
......
......@@ -67,17 +67,17 @@ QString AnalyzerOptionsPage::displayName() const
QString AnalyzerOptionsPage::category() const
{
return QLatin1String(Constants::ANALYZER_SETTINGS_CATEGORY);
return QLatin1String("T.Analyzer");
}
QString AnalyzerOptionsPage::displayCategory() const
{
return QCoreApplication::translate("Analyzer", Constants::ANALYZER_SETTINGS_TR_CATEGORY);
return QCoreApplication::translate("Analyzer", "Analyzer");
}
QIcon AnalyzerOptionsPage::categoryIcon() const
{
return QIcon(QLatin1String(Constants::ANALYZER_SETTINGS_CATEGORY_ICON));
return QIcon(QLatin1String(":/images/analyzer_category.png"));
}
QWidget *AnalyzerOptionsPage::createPage(QWidget *parent)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment