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.
This commit is contained in:
Lasse Holmstedt
2010-03-18 10:56:25 +01:00
parent b14a208273
commit 492fffb4cc
9 changed files with 119 additions and 36 deletions

View File

@@ -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;
}