Commit f48ff339 authored by hjk's avatar hjk
Browse files

debugger: code cosmetics

parent c3fc03c1
......@@ -380,10 +380,6 @@ DebuggerSettings *theDebuggerSettings()
item->setText(QObject::tr("Syncronize breakpoints"));
//
item = new DebuggerAction(instance);
instance->insertItem(AutoQuit, item);
item->setText(QObject::tr("Automatically quit debugger"));
item->setCheckable(true);
item = new DebuggerAction(instance);
instance->insertItem(SkipKnownFrames, item);
......@@ -417,12 +413,10 @@ DebuggerSettings *theDebuggerSettings()
item->setSettingsKey("DebugMode", "ScriptFile");
item = new DebuggerAction(instance);
instance->insertItem(GdbAutoQuit, item);
item->setSettingsKey("DebugMode", "AutoQuit");
item = new DebuggerAction(instance);
instance->insertItem(GdbAutoRun, item);
item->setSettingsKey("DebugMode", "AutoRun");
item->setText(QObject::tr("Automatically quit debugger"));
item->setCheckable(true);
instance->insertItem(AutoQuit, item);
item = new DebuggerAction(instance);
instance->insertItem(UseToolTips, item);
......@@ -450,7 +444,7 @@ DebuggerSettings *theDebuggerSettings()
item->setSettingsKey("DebugMode", "PrebuiltDumpersLocation");
item = new DebuggerAction(instance);
instance->insertItem(Terminal, item);
instance->insertItem(TerminalApplication, item);
item->setDefaultValue("xterm");
item->setSettingsKey("DebugMode", "Terminal");
......
......@@ -134,16 +134,14 @@ enum DebuggerActionCode
SettingsDialog,
AdjustColumnWidths,
AlwaysAdjustColumnWidths,
AutoQuit,
TerminalApplication,
LockView,
// Gdb
GdbLocation,
GdbEnvironment,
GdbScriptFile,
GdbAutoRun,
GdbAutoQuit,
Terminal,
// Watchers & Locals
WatchExpression,
......@@ -173,7 +171,11 @@ enum DebuggerActionCode
NoPluginBreakpoints,
SelectedPluginBreakpointsPattern,
AutoQuit,
// Registers
FormatHexadecimal,
FormatDecimal,
FormatOctal,
FormatBinary,
};
// singleton access
......
......@@ -278,7 +278,7 @@ QWidget *GdbOptionPage::createPage(QWidget *parent)
->connectWidget(m_ui.scriptFileChooser);
theDebuggerAction(GdbEnvironment)
->connectWidget(m_ui.environmentEdit);
theDebuggerAction(Terminal)
theDebuggerAction(TerminalApplication)
->connectWidget(m_ui.terminalChooser);
theDebuggerAction(AllPluginBreakpoints)
......@@ -319,7 +319,7 @@ void GdbOptionPage::apply()
theDebuggerAction(GdbLocation)->apply(s);
theDebuggerAction(GdbScriptFile)->apply(s);
theDebuggerAction(GdbEnvironment)->apply(s);
theDebuggerAction(Terminal)->apply(s);
theDebuggerAction(TerminalApplication)->apply(s);
theDebuggerAction(AllPluginBreakpoints)->apply(s);
theDebuggerAction(SelectedPluginBreakpoints)->apply(s);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment