summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/debuggeractions.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2012-08-22 11:58:33 +0200
committerhjk <qthjk@ovi.com>2012-08-22 12:24:24 +0200
commit2f51579fe4bf947784135f02e10f129cc75ad695 (patch)
tree885612432ba452e2af685c47fe4d5ef6310827c8 /src/plugins/debugger/debuggeractions.cpp
parent0418e6dc64b196c8db4050f53a42d3f5bf721e8b (diff)
downloadqt-creator-2f51579fe4bf947784135f02e10f129cc75ad695.tar.gz
Debugger: Fix string usages.
- Compile with QT_NO_CAST_FROM_ASCII. - Remove single character string constants. Change-Id: Icece98619b6c30e047d3fce00e6ae74bbcd53c67 Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/plugins/debugger/debuggeractions.cpp')
-rw-r--r--src/plugins/debugger/debuggeractions.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/plugins/debugger/debuggeractions.cpp b/src/plugins/debugger/debuggeractions.cpp
index 354b87d4e2..f912e3d9d8 100644
--- a/src/plugins/debugger/debuggeractions.cpp
+++ b/src/plugins/debugger/debuggeractions.cpp
@@ -28,6 +28,8 @@
**
**************************************************************************/
+#define QT_NO_CAST_FROM_ASCII
+
#include "debuggeractions.h"
#include "debuggerconstants.h"
@@ -551,8 +553,9 @@ DebuggerSettings::DebuggerSettings(QSettings *settings)
item->setDefaultValue(true);
insertItem(ShowQmlObjectTree, item);
+ const QString qmlInspectorGroup = QLatin1String("QML.Inspector");
item = new SavedAction(this);
- item->setSettingsKey("QML.Inspector", QLatin1String("QmlInspector.ShowAppOnTop"));
+ item->setSettingsKey(qmlInspectorGroup, QLatin1String("QmlInspector.ShowAppOnTop"));
item->setText(tr("Show Application On Top"));
item->setCheckable(true);
item->setDefaultValue(false);
@@ -560,7 +563,7 @@ DebuggerSettings::DebuggerSettings(QSettings *settings)
insertItem(ShowAppOnTop, item);
item = new SavedAction(this);
- item->setSettingsKey("QML.Inspector", QLatin1String("QmlInspector.FromQml"));
+ item->setSettingsKey(qmlInspectorGroup, QLatin1String("QmlInspector.FromQml"));
item->setText(tr("Apply Changes on Save"));
item->setCheckable(true);
item->setDefaultValue(false);
@@ -611,7 +614,7 @@ QString DebuggerSettings::dump() const
const QString current = item->value().toString();
const QString default_ = item->defaultValue().toString();
ts << '\n' << key << ": " << current
- << " (default: " << default_ << ")";
+ << " (default: " << default_ << ')';
if (current != default_)
ts << " ***";
}