aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/debuggeractions.cpp
diff options
context:
space:
mode:
authorLasse Holmstedt <[email protected]>2010-03-18 10:56:25 +0100
committerLasse Holmstedt <[email protected]>2010-03-18 17:05:22 +0100
commit492fffb4cc43e93438aa0658dbf095ab1931ee6c (patch)
tree252fdb3483070038422ff57576a4bd3478fb3954 /src/plugins/debugger/debuggeractions.cpp
parentb14a2082739e185c317562f8b93f965b23553012 (diff)
Added automatic language switching option to debugger settings
Additionally, hiding of debugger menu entries was done as most of them are irrelevant for QML debugging.
Diffstat (limited to 'src/plugins/debugger/debuggeractions.cpp')
-rw-r--r--src/plugins/debugger/debuggeractions.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/debugger/debuggeractions.cpp b/src/plugins/debugger/debuggeractions.cpp
index a382ae42e35..3ffbb3c2c97 100644
--- a/src/plugins/debugger/debuggeractions.cpp
+++ b/src/plugins/debugger/debuggeractions.cpp
@@ -442,6 +442,14 @@ DebuggerSettings *DebuggerSettings::instance()
item->setDefaultValue(20);
instance->insertItem(GdbWatchdogTimeout, item);
+ // Language switching
+ item = new Utils::SavedAction(instance);
+ item->setSettingsKey(debugModeGroup, QLatin1String("ChangeLanguageAutomatically"));
+ item->setText(tr("Change debugger language automatically"));
+ item->setToolTip(tr("Changes the debugger language according to the currently opened file."));
+ item->setCheckable(true);
+ item->setDefaultValue(true);
+ instance->insertItem(SwitchLanguageAutomatically, item);
return instance;
}