forked from qt-creator/qt-creator
Debugger: Strip QLatin1* where possible
Change-Id: Idcab23875b5dc2ecf55e3303f417b995e2252720 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
d0d6f99491
commit
147a3c27c4
@@ -52,10 +52,10 @@ namespace Internal {
|
||||
void GlobalDebuggerOptions::toSettings() const
|
||||
{
|
||||
QSettings *s = Core::ICore::settings();
|
||||
s->beginWriteArray(QLatin1String(sourcePathMappingArrayNameC));
|
||||
s->beginWriteArray(sourcePathMappingArrayNameC);
|
||||
if (!sourcePathMap.isEmpty() || !sourcePathRegExpMap.isEmpty()) {
|
||||
const QString sourcePathMappingSourceKey = QLatin1String(sourcePathMappingSourceKeyC);
|
||||
const QString sourcePathMappingTargetKey = QLatin1String(sourcePathMappingTargetKeyC);
|
||||
const QString sourcePathMappingSourceKey(sourcePathMappingSourceKeyC);
|
||||
const QString sourcePathMappingTargetKey(sourcePathMappingTargetKeyC);
|
||||
int i = 0;
|
||||
for (auto it = sourcePathMap.constBegin(), cend = sourcePathMap.constEnd();
|
||||
it != cend;
|
||||
@@ -79,14 +79,14 @@ void GlobalDebuggerOptions::fromSettings()
|
||||
{
|
||||
QSettings *s = Core::ICore::settings();
|
||||
sourcePathMap.clear();
|
||||
if (const int count = s->beginReadArray(QLatin1String(sourcePathMappingArrayNameC))) {
|
||||
const QString sourcePathMappingSourceKey = QLatin1String(sourcePathMappingSourceKeyC);
|
||||
const QString sourcePathMappingTargetKey = QLatin1String(sourcePathMappingTargetKeyC);
|
||||
if (const int count = s->beginReadArray(sourcePathMappingArrayNameC)) {
|
||||
const QString sourcePathMappingSourceKey(sourcePathMappingSourceKeyC);
|
||||
const QString sourcePathMappingTargetKey(sourcePathMappingTargetKeyC);
|
||||
for (int i = 0; i < count; ++i) {
|
||||
s->setArrayIndex(i);
|
||||
const QString key = s->value(sourcePathMappingSourceKey).toString();
|
||||
const QString value = s->value(sourcePathMappingTargetKey).toString();
|
||||
if (key.startsWith(QLatin1Char('(')))
|
||||
if (key.startsWith('('))
|
||||
sourcePathRegExpMap.append(qMakePair(QRegExp(key), value));
|
||||
else
|
||||
sourcePathMap.insert(key, value);
|
||||
@@ -107,8 +107,8 @@ DebuggerSettings::DebuggerSettings()
|
||||
{
|
||||
theDebuggerSettings = this;
|
||||
|
||||
const QString debugModeGroup = QLatin1String(debugModeSettingsGroupC);
|
||||
const QString cdbSettingsGroup = QLatin1String(cdbSettingsGroupC);
|
||||
const QString debugModeGroup(debugModeSettingsGroupC);
|
||||
const QString cdbSettingsGroup(cdbSettingsGroupC);
|
||||
|
||||
SavedAction *item = nullptr;
|
||||
|
||||
@@ -124,35 +124,34 @@ DebuggerSettings::DebuggerSettings()
|
||||
item->setCheckable(true);
|
||||
item->setValue(true);
|
||||
item->setDefaultValue(true);
|
||||
item->setSettingsKey(debugModeGroup,
|
||||
QLatin1String("AlwaysAdjustColumnWidths"));
|
||||
item->setSettingsKey(debugModeGroup, "AlwaysAdjustColumnWidths");
|
||||
insertItem(AlwaysAdjustColumnWidths, item);
|
||||
|
||||
// Needed by QML Inspector
|
||||
item = new SavedAction(this);
|
||||
item->setText(tr("Use Alternating Row Colors"));
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("UseAlternatingRowColours"));
|
||||
item->setSettingsKey(debugModeGroup, "UseAlternatingRowColours");
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(false);
|
||||
insertItem(UseAlternatingRowColors, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setText(tr("Keep Editor Stationary When Stepping"));
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("StationaryEditorWhileStepping"));
|
||||
item->setSettingsKey(debugModeGroup, "StationaryEditorWhileStepping");
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(false);
|
||||
insertItem(StationaryEditorWhileStepping, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setText(tr("Debugger Font Size Follows Main Editor"));
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("FontSizeFollowsEditor"));
|
||||
item->setSettingsKey(debugModeGroup, "FontSizeFollowsEditor");
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(false);
|
||||
insertItem(FontSizeFollowsEditor, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setText(tr("Show a Message Box When Receiving a Signal"));
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("UseMessageBoxForSignals"));
|
||||
item->setSettingsKey(debugModeGroup, "UseMessageBoxForSignals");
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(true);
|
||||
item->setValue(true);
|
||||
@@ -160,7 +159,7 @@ DebuggerSettings::DebuggerSettings()
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setText(tr("Log Time Stamps"));
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("LogTimeStamps"));
|
||||
item->setSettingsKey(debugModeGroup, "LogTimeStamps");
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(false);
|
||||
insertItem(LogTimeStamps, item);
|
||||
@@ -169,7 +168,7 @@ DebuggerSettings::DebuggerSettings()
|
||||
item->setText(tr("Dereference Pointers Automatically"));
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(true);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("AutoDerefPointers"));
|
||||
item->setSettingsKey(debugModeGroup, "AutoDerefPointers");
|
||||
item->setToolTip(tr("<p>This switches the Locals and Expressions view to "
|
||||
"automatically dereference pointers. This saves a level in the "
|
||||
"tree view, but also loses data for the now-missing intermediate "
|
||||
@@ -182,71 +181,71 @@ DebuggerSettings::DebuggerSettings()
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setDefaultValue(QString());
|
||||
item->setSettingsKey(cdbSettingsGroup, QLatin1String("AdditionalArguments"));
|
||||
item->setSettingsKey(cdbSettingsGroup, "AdditionalArguments");
|
||||
insertItem(CdbAdditionalArguments, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setDefaultValue(QStringList());
|
||||
item->setSettingsKey(cdbSettingsGroup, QLatin1String("SymbolPaths"));
|
||||
item->setSettingsKey(cdbSettingsGroup, "SymbolPaths");
|
||||
insertItem(CdbSymbolPaths, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setDefaultValue(QStringList());
|
||||
item->setSettingsKey(cdbSettingsGroup, QLatin1String("SourcePaths"));
|
||||
item->setSettingsKey(cdbSettingsGroup, "SourcePaths");
|
||||
insertItem(CdbSourcePaths, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setDefaultValue(QStringList());
|
||||
item->setSettingsKey(cdbSettingsGroup, QLatin1String("BreakEvent"));
|
||||
item->setSettingsKey(cdbSettingsGroup, "BreakEvent");
|
||||
insertItem(CdbBreakEvents, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(false);
|
||||
item->setSettingsKey(cdbSettingsGroup, QLatin1String("BreakOnCrtDbgReport"));
|
||||
item->setSettingsKey(cdbSettingsGroup, "BreakOnCrtDbgReport");
|
||||
insertItem(CdbBreakOnCrtDbgReport, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(false);
|
||||
item->setSettingsKey(cdbSettingsGroup, QLatin1String("CDB_Console"));
|
||||
item->setSettingsKey(cdbSettingsGroup, "CDB_Console");
|
||||
insertItem(UseCdbConsole, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(true);
|
||||
item->setSettingsKey(cdbSettingsGroup, QLatin1String("BreakpointCorrection"));
|
||||
item->setSettingsKey(cdbSettingsGroup, "BreakpointCorrection");
|
||||
insertItem(CdbBreakPointCorrection, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(true);
|
||||
item->setSettingsKey(cdbSettingsGroup, QLatin1String("UsePythonDumper"));
|
||||
item->setSettingsKey(cdbSettingsGroup, "UsePythonDumper");
|
||||
insertItem(CdbUsePythonDumper, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(true);
|
||||
item->setSettingsKey(cdbSettingsGroup, QLatin1String("FirstChanceExceptionTaskEntry"));
|
||||
item->setSettingsKey(cdbSettingsGroup, "FirstChanceExceptionTaskEntry");
|
||||
insertItem(FirstChanceExceptionTaskEntry, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(true);
|
||||
item->setSettingsKey(cdbSettingsGroup, QLatin1String("SecondChanceExceptionTaskEntry"));
|
||||
item->setSettingsKey(cdbSettingsGroup, "SecondChanceExceptionTaskEntry");
|
||||
insertItem(SecondChanceExceptionTaskEntry, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(false);
|
||||
item->setSettingsKey(cdbSettingsGroup, QLatin1String("IgnoreFirstChanceAccessViolation"));
|
||||
item->setSettingsKey(cdbSettingsGroup, "IgnoreFirstChanceAccessViolation");
|
||||
insertItem(IgnoreFirstChanceAccessViolation, item);
|
||||
|
||||
//
|
||||
// Locals & Watchers
|
||||
//
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("ShowStandardNamespace"));
|
||||
item->setSettingsKey(debugModeGroup, "ShowStandardNamespace");
|
||||
item->setText(tr("Show \"std::\" Namespace in Types"));
|
||||
item->setDialogText(tr("Show \"std::\" namespace in types"));
|
||||
item->setToolTip(tr("<p>Shows \"std::\" prefix for types from the standard library."));
|
||||
@@ -256,7 +255,7 @@ DebuggerSettings::DebuggerSettings()
|
||||
insertItem(ShowStdNamespace, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("ShowQtNamespace"));
|
||||
item->setSettingsKey(debugModeGroup, "ShowQtNamespace");
|
||||
item->setText(tr("Show Qt's Namespace in Types"));
|
||||
item->setDialogText(tr("Show Qt's namespace in types"));
|
||||
item->setToolTip(tr("<p>Shows Qt namespace prefix for Qt types. This is only "
|
||||
@@ -267,7 +266,7 @@ DebuggerSettings::DebuggerSettings()
|
||||
insertItem(ShowQtNamespace, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("ShowQObjectNames2"));
|
||||
item->setSettingsKey(debugModeGroup, "ShowQObjectNames2");
|
||||
item->setText(tr("Show QObject names if available"));
|
||||
item->setDialogText(tr("Show QObject names if available"));
|
||||
item->setToolTip(tr("<p>Displays the objectName property of QObject based items. "
|
||||
@@ -279,7 +278,7 @@ DebuggerSettings::DebuggerSettings()
|
||||
insertItem(ShowQObjectNames, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("SortStructMembers"));
|
||||
item->setSettingsKey(debugModeGroup, "SortStructMembers");
|
||||
item->setText(tr("Sort Members of Classes and Structs Alphabetically"));
|
||||
item->setDialogText(tr("Sort members of classes and structs alphabetically"));
|
||||
item->setCheckable(true);
|
||||
@@ -291,7 +290,7 @@ DebuggerSettings::DebuggerSettings()
|
||||
// DebuggingHelper
|
||||
//
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("UseDebuggingHelper"));
|
||||
item->setSettingsKey(debugModeGroup, "UseDebuggingHelper");
|
||||
item->setText(tr("Use Debugging Helpers"));
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(true);
|
||||
@@ -299,7 +298,7 @@ DebuggerSettings::DebuggerSettings()
|
||||
insertItem(UseDebuggingHelpers, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("UseCodeModel"));
|
||||
item->setSettingsKey(debugModeGroup, "UseCodeModel");
|
||||
item->setDialogText(tr("Use code model"));
|
||||
item->setToolTip(tr("<p>Selecting this causes the C++ Code Model being asked "
|
||||
"for variable scope information. This might result in slightly faster "
|
||||
@@ -310,7 +309,7 @@ DebuggerSettings::DebuggerSettings()
|
||||
insertItem(UseCodeModel, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("ShowThreadNames"));
|
||||
item->setSettingsKey(debugModeGroup, "ShowThreadNames");
|
||||
item->setToolTip(tr("<p>Displays names of QThread based threads."));
|
||||
item->setDialogText(tr("Display thread names"));
|
||||
item->setCheckable(true);
|
||||
@@ -337,7 +336,7 @@ DebuggerSettings::DebuggerSettings()
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(true);
|
||||
item->setValue(true);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("AdjustBreakpointLocations"));
|
||||
item->setSettingsKey(debugModeGroup, "AdjustBreakpointLocations");
|
||||
insertItem(AdjustBreakpointLocations, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
@@ -345,7 +344,7 @@ DebuggerSettings::DebuggerSettings()
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(false);
|
||||
item->setValue(false);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("BreakOnThrow"));
|
||||
item->setSettingsKey(debugModeGroup, "BreakOnThrow");
|
||||
insertItem(BreakOnThrow, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
@@ -353,7 +352,7 @@ DebuggerSettings::DebuggerSettings()
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(false);
|
||||
item->setValue(false);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("BreakOnCatch"));
|
||||
item->setSettingsKey(debugModeGroup, "BreakOnCatch");
|
||||
insertItem(BreakOnCatch, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
@@ -361,7 +360,7 @@ DebuggerSettings::DebuggerSettings()
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(false);
|
||||
item->setValue(false);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("BreakOnWarning"));
|
||||
item->setSettingsKey(debugModeGroup, "BreakOnWarning");
|
||||
insertItem(BreakOnWarning, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
@@ -369,7 +368,7 @@ DebuggerSettings::DebuggerSettings()
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(false);
|
||||
item->setValue(false);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("BreakOnFatal"));
|
||||
item->setSettingsKey(debugModeGroup, "BreakOnFatal");
|
||||
insertItem(BreakOnFatal, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
@@ -377,7 +376,7 @@ DebuggerSettings::DebuggerSettings()
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(false);
|
||||
item->setValue(false);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("BreakOnAbort"));
|
||||
item->setSettingsKey(debugModeGroup, "BreakOnAbort");
|
||||
insertItem(BreakOnAbort, item);
|
||||
|
||||
//
|
||||
@@ -385,7 +384,7 @@ DebuggerSettings::DebuggerSettings()
|
||||
//
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("LoadGdbInit"));
|
||||
item->setSettingsKey(debugModeGroup, "LoadGdbInit");
|
||||
item->setDefaultValue(QString());
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(true);
|
||||
@@ -393,7 +392,7 @@ DebuggerSettings::DebuggerSettings()
|
||||
insertItem(LoadGdbInit, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("LoadGdbDumpers2"));
|
||||
item->setSettingsKey(debugModeGroup, "LoadGdbDumpers2");
|
||||
item->setDefaultValue(QString());
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(false);
|
||||
@@ -401,7 +400,7 @@ DebuggerSettings::DebuggerSettings()
|
||||
insertItem(LoadGdbDumpers, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("AutoEnrichParameters"));
|
||||
item->setSettingsKey(debugModeGroup, "AutoEnrichParameters");
|
||||
item->setDefaultValue(QString());
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(true);
|
||||
@@ -409,7 +408,7 @@ DebuggerSettings::DebuggerSettings()
|
||||
insertItem(AutoEnrichParameters, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("UseDynamicType"));
|
||||
item->setSettingsKey(debugModeGroup, "UseDynamicType");
|
||||
item->setText(tr("Use Dynamic Object Type for Display"));
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(true);
|
||||
@@ -417,95 +416,95 @@ DebuggerSettings::DebuggerSettings()
|
||||
insertItem(UseDynamicType, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("TargetAsync"));
|
||||
item->setSettingsKey(debugModeGroup, "TargetAsync");
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(false);
|
||||
item->setValue(false);
|
||||
insertItem(TargetAsync, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("WarnOnReleaseBuilds"));
|
||||
item->setSettingsKey(debugModeGroup, "WarnOnReleaseBuilds");
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(true);
|
||||
insertItem(WarnOnReleaseBuilds, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("GdbStartupCommands"));
|
||||
item->setSettingsKey(debugModeGroup, "GdbStartupCommands");
|
||||
item->setDefaultValue(QString());
|
||||
insertItem(GdbStartupCommands, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("GdbCustomDumperCommands"));
|
||||
item->setSettingsKey(debugModeGroup, "GdbCustomDumperCommands");
|
||||
item->setDefaultValue(QString());
|
||||
insertItem(ExtraDumperCommands, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("ExtraDumperFile"));
|
||||
item->setSettingsKey(debugModeGroup, "ExtraDumperFile");
|
||||
item->setDefaultValue(QString());
|
||||
insertItem(ExtraDumperFile, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("GdbPostAttachCommands"));
|
||||
item->setSettingsKey(debugModeGroup, "GdbPostAttachCommands");
|
||||
item->setDefaultValue(QString());
|
||||
insertItem(GdbPostAttachCommands, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("CloseBuffersOnExit"));
|
||||
item->setSettingsKey(debugModeGroup, "CloseBuffersOnExit");
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(false);
|
||||
insertItem(CloseSourceBuffersOnExit, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("CloseMemoryBuffersOnExit"));
|
||||
item->setSettingsKey(debugModeGroup, "CloseMemoryBuffersOnExit");
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(true);
|
||||
insertItem(CloseMemoryBuffersOnExit, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("SwitchModeOnExit"));
|
||||
item->setSettingsKey(debugModeGroup, "SwitchModeOnExit");
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(false);
|
||||
insertItem(SwitchModeOnExit, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("BreakpointsFullPath"));
|
||||
item->setSettingsKey(debugModeGroup, "BreakpointsFullPath");
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(false);
|
||||
insertItem(BreakpointsFullPathByDefault, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("RaiseOnInterrupt"));
|
||||
item->setSettingsKey(debugModeGroup, "RaiseOnInterrupt");
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(true);
|
||||
insertItem(RaiseOnInterrupt, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("AutoQuit"));
|
||||
item->setSettingsKey(debugModeGroup, "AutoQuit");
|
||||
item->setText(tr("Automatically Quit Debugger"));
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(false);
|
||||
insertItem(AutoQuit, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("MultiInferior"));
|
||||
item->setSettingsKey(debugModeGroup, "MultiInferior");
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(false);
|
||||
insertItem(MultiInferior, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("IntelFlavor"));
|
||||
item->setSettingsKey(debugModeGroup, "IntelFlavor");
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(false);
|
||||
insertItem(IntelFlavor, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("IdentifyDebugInfoPackages"));
|
||||
item->setSettingsKey(debugModeGroup, "IdentifyDebugInfoPackages");
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(false);
|
||||
insertItem(IdentifyDebugInfoPackages, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("UseToolTips"));
|
||||
item->setSettingsKey(debugModeGroup, "UseToolTips");
|
||||
item->setText(tr("Use tooltips in main editor when debugging"));
|
||||
item->setToolTip(tr("<p>Checking this will enable tooltips for variable "
|
||||
"values during debugging. Since this can slow down debugging and "
|
||||
@@ -516,7 +515,7 @@ DebuggerSettings::DebuggerSettings()
|
||||
insertItem(UseToolTipsInMainEditor, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("UseToolTipsInLocalsView"));
|
||||
item->setSettingsKey(debugModeGroup, "UseToolTipsInLocalsView");
|
||||
item->setText(tr("Use Tooltips in Locals View when Debugging"));
|
||||
item->setToolTip(tr("<p>Checking this will enable tooltips in the locals "
|
||||
"view during debugging."));
|
||||
@@ -525,7 +524,7 @@ DebuggerSettings::DebuggerSettings()
|
||||
insertItem(UseToolTipsInLocalsView, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("UseToolTipsInBreakpointsView"));
|
||||
item->setSettingsKey(debugModeGroup, "UseToolTipsInBreakpointsView");
|
||||
item->setText(tr("Use Tooltips in Breakpoints View when Debugging"));
|
||||
item->setToolTip(tr("<p>Checking this will enable tooltips in the breakpoints "
|
||||
"view during debugging."));
|
||||
@@ -534,7 +533,7 @@ DebuggerSettings::DebuggerSettings()
|
||||
insertItem(UseToolTipsInBreakpointsView, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("UseToolTipsInStackView"));
|
||||
item->setSettingsKey(debugModeGroup, "UseToolTipsInStackView");
|
||||
item->setText(tr("Use Tooltips in Stack View when Debugging"));
|
||||
item->setToolTip(tr("<p>Checking this will enable tooltips in the stack "
|
||||
"view during debugging."));
|
||||
@@ -543,7 +542,7 @@ DebuggerSettings::DebuggerSettings()
|
||||
insertItem(UseToolTipsInStackView, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("UseAddressInBreakpointsView"));
|
||||
item->setSettingsKey(debugModeGroup, "UseAddressInBreakpointsView");
|
||||
item->setText(tr("Show Address Data in Breakpoints View when Debugging"));
|
||||
item->setToolTip(tr("<p>Checking this will show a column with address "
|
||||
"information in the breakpoint view during debugging."));
|
||||
@@ -552,7 +551,7 @@ DebuggerSettings::DebuggerSettings()
|
||||
insertItem(UseAddressInBreakpointsView, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("UseAddressInStackView"));
|
||||
item->setSettingsKey(debugModeGroup, "UseAddressInStackView");
|
||||
item->setText(tr("Show Address Data in Stack View when Debugging"));
|
||||
item->setToolTip(tr("<p>Checking this will show a column with address "
|
||||
"information in the stack view during debugging."));
|
||||
@@ -561,14 +560,14 @@ DebuggerSettings::DebuggerSettings()
|
||||
insertItem(UseAddressInStackView, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("SkipKnownFrames"));
|
||||
item->setSettingsKey(debugModeGroup, "SkipKnownFrames");
|
||||
item->setText(tr("Skip Known Frames"));
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(false);
|
||||
insertItem(SkipKnownFrames, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("EnableReverseDebugging"));
|
||||
item->setSettingsKey(debugModeGroup, "EnableReverseDebugging");
|
||||
item->setText(tr("Enable Reverse Debugging"));
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(false);
|
||||
@@ -577,7 +576,7 @@ DebuggerSettings::DebuggerSettings()
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
item = new RegisterPostMortemAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("RegisterForPostMortem"));
|
||||
item->setSettingsKey(debugModeGroup, "RegisterForPostMortem");
|
||||
item->setText(tr("Register For Post-Mortem Debugging"));
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(false);
|
||||
@@ -585,32 +584,32 @@ DebuggerSettings::DebuggerSettings()
|
||||
#endif
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("AllPluginBreakpoints"));
|
||||
item->setSettingsKey(debugModeGroup, "AllPluginBreakpoints");
|
||||
item->setDefaultValue(true);
|
||||
insertItem(AllPluginBreakpoints, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("SelectedPluginBreakpoints"));
|
||||
item->setSettingsKey(debugModeGroup, "SelectedPluginBreakpoints");
|
||||
item->setDefaultValue(false);
|
||||
insertItem(SelectedPluginBreakpoints, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("NoPluginBreakpoints"));
|
||||
item->setSettingsKey(debugModeGroup, "NoPluginBreakpoints");
|
||||
item->setDefaultValue(false);
|
||||
insertItem(NoPluginBreakpoints, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("SelectedPluginBreakpointsPattern"));
|
||||
item->setDefaultValue(QLatin1String(".*"));
|
||||
item->setSettingsKey(debugModeGroup, "SelectedPluginBreakpointsPattern");
|
||||
item->setDefaultValue(".*");
|
||||
insertItem(SelectedPluginBreakpointsPattern, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("MaximalStackDepth"));
|
||||
item->setSettingsKey(debugModeGroup, "MaximalStackDepth");
|
||||
item->setDefaultValue(20);
|
||||
insertItem(MaximalStackDepth, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("DisplayStringLimit"));
|
||||
item->setSettingsKey(debugModeGroup, "DisplayStringLimit");
|
||||
item->setToolTip(tr("<p>The maximum length of string entries in the "
|
||||
"Locals and Expressions pane. Longer than that are cut off "
|
||||
"and displayed with an ellipsis attached."));
|
||||
@@ -618,7 +617,7 @@ DebuggerSettings::DebuggerSettings()
|
||||
insertItem(DisplayStringLimit, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("MaximalStringLength"));
|
||||
item->setSettingsKey(debugModeGroup, "MaximalStringLength");
|
||||
item->setToolTip(tr("<p>The maximum length for strings in separated windows. "
|
||||
"Longer strings are cut off and displayed with an ellipsis attached."));
|
||||
item->setDefaultValue(10000);
|
||||
@@ -633,7 +632,7 @@ DebuggerSettings::DebuggerSettings()
|
||||
insertItem(CreateFullBacktrace, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("WatchdogTimeout"));
|
||||
item->setSettingsKey(debugModeGroup, "WatchdogTimeout");
|
||||
item->setDefaultValue(20);
|
||||
insertItem(GdbWatchdogTimeout, item);
|
||||
|
||||
@@ -641,13 +640,13 @@ DebuggerSettings::DebuggerSettings()
|
||||
// QML Tools
|
||||
//
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("ShowQmlObjectTree"));
|
||||
item->setSettingsKey(debugModeGroup, "ShowQmlObjectTree");
|
||||
item->setDefaultValue(true);
|
||||
insertItem(ShowQmlObjectTree, item);
|
||||
|
||||
const QString qmlInspectorGroup = QLatin1String("QML.Inspector");
|
||||
const QString qmlInspectorGroup = "QML.Inspector";
|
||||
item = new SavedAction(this);
|
||||
item->setSettingsKey(qmlInspectorGroup, QLatin1String("QmlInspector.ShowAppOnTop"));
|
||||
item->setSettingsKey(qmlInspectorGroup, "QmlInspector.ShowAppOnTop");
|
||||
item->setDefaultValue(false);
|
||||
insertItem(ShowAppOnTop, item);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user