Debugger: Remove "Change language automatically"

This commit is contained in:
Lasse Holmstedt
2010-08-24 12:04:18 +02:00
parent 63da8d4cd7
commit 67365553f7
5 changed files with 3 additions and 39 deletions

View File

@@ -6,30 +6,11 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>338</width> <width>356</width>
<height>357</height> <height>357</height>
</rect> </rect>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QGroupBox" name="groupBox_2">
<property name="title">
<string>Language</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QCheckBox" name="checkBoxChangeLanguageAutomatically">
<property name="toolTip">
<string>Changes the debugger language according to the currently opened file.</string>
</property>
<property name="text">
<string>Change debugger language automatically</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item> <item>
<widget class="QGroupBox" name="groupBox"> <widget class="QGroupBox" name="groupBox">
<property name="title"> <property name="title">

View File

@@ -490,15 +490,6 @@ DebuggerSettings *DebuggerSettings::instance()
item->setDefaultValue(20); item->setDefaultValue(20);
instance->insertItem(GdbWatchdogTimeout, item); 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; return instance;
} }

View File

@@ -141,10 +141,7 @@ enum DebuggerActionCode
SelectedPluginBreakpointsPattern, SelectedPluginBreakpointsPattern,
UsePreciseBreakpoints, UsePreciseBreakpoints,
BreakOnThrow, BreakOnThrow,
BreakOnCatch, BreakOnCatch
// UI/Language switching
SwitchLanguageAutomatically
}; };
// singleton access // singleton access

View File

@@ -112,8 +112,8 @@ DebuggerStartParameters::DebuggerStartParameters()
, qmlServerAddress("127.0.0.1") , qmlServerAddress("127.0.0.1")
, qmlServerPort(0) , qmlServerPort(0)
, toolChainType(ToolChain::UNKNOWN) , toolChainType(ToolChain::UNKNOWN)
, executableUid(0)
, startMode(NoStartMode) , startMode(NoStartMode)
, executableUid(0)
{} {}
void DebuggerStartParameters::clear() void DebuggerStartParameters::clear()

View File

@@ -516,9 +516,6 @@ QWidget *CommonOptionsPage::createPage(QWidget *parent)
m_ui.setupUi(w); m_ui.setupUi(w);
m_group.clear(); m_group.clear();
m_group.insert(theDebuggerAction(SwitchLanguageAutomatically),
m_ui.checkBoxChangeLanguageAutomatically);
m_group.insert(theDebuggerAction(ListSourceFiles), m_group.insert(theDebuggerAction(ListSourceFiles),
m_ui.checkBoxListSourceFiles); m_ui.checkBoxListSourceFiles);
m_group.insert(theDebuggerAction(UseAlternatingRowColors), m_group.insert(theDebuggerAction(UseAlternatingRowColors),
@@ -549,7 +546,6 @@ QWidget *CommonOptionsPage::createPage(QWidget *parent)
if (m_searchKeywords.isEmpty()) { if (m_searchKeywords.isEmpty()) {
QTextStream(&m_searchKeywords) << ' ' QTextStream(&m_searchKeywords) << ' '
<< m_ui.checkBoxChangeLanguageAutomatically->text()
<< m_ui.checkBoxListSourceFiles->text() << m_ui.checkBoxListSourceFiles->text()
<< ' ' << m_ui.checkBoxUseAlternatingRowColors->text() << ' ' << m_ui.checkBoxUseAlternatingRowColors->text()
<< ' ' << m_ui.checkBoxUseToolTipsInMainEditor->text() << ' ' << m_ui.checkBoxUseToolTipsInMainEditor->text()
@@ -1222,7 +1218,6 @@ bool DebuggerPluginPrivate::initialize(const QStringList &arguments, QString *er
// Cpp/Qml ui setup // Cpp/Qml ui setup
m_uiSwitcher = new DebuggerUISwitcher(m_debugMode, this); m_uiSwitcher = new DebuggerUISwitcher(m_debugMode, this);
ExtensionSystem::PluginManager::instance()->addObject(m_uiSwitcher); ExtensionSystem::PluginManager::instance()->addObject(m_uiSwitcher);
theDebuggerAction(SwitchLanguageAutomatically)->setChecked(true);
m_uiSwitcher->addLanguage(Lang_Cpp, tr("C++"), cppDebuggercontext); m_uiSwitcher->addLanguage(Lang_Cpp, tr("C++"), cppDebuggercontext);
// Dock widgets // Dock widgets