Commit 2a1c503b authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Fix debugger settings action.

parent e76943eb
...@@ -53,6 +53,7 @@ const char * const M_DEBUG_VIEWS = "Debugger.Menu.View.Debug"; ...@@ -53,6 +53,7 @@ const char * const M_DEBUG_VIEWS = "Debugger.Menu.View.Debug";
const char * const C_GDBDEBUGGER = "Gdb Debugger"; const char * const C_GDBDEBUGGER = "Gdb Debugger";
const char * const GDBRUNNING = "Gdb.Running"; const char * const GDBRUNNING = "Gdb.Running";
const char * const DEBUGGER_COMMON_SETTINGS_PAGE = QT_TRANSLATE_NOOP("Debugger", "Common");
const char * const DEBUGGER_SETTINGS_CATEGORY = QT_TRANSLATE_NOOP("Debugger", "Debugger"); const char * const DEBUGGER_SETTINGS_CATEGORY = QT_TRANSLATE_NOOP("Debugger", "Debugger");
namespace Internal { namespace Internal {
......
...@@ -246,8 +246,8 @@ public: ...@@ -246,8 +246,8 @@ public:
CommonOptionsPage() {} CommonOptionsPage() {}
// IOptionsPage // IOptionsPage
QString id() const { return QLatin1String("Common"); } QString id() const { return QLatin1String(Debugger::Constants::DEBUGGER_COMMON_SETTINGS_PAGE); }
QString trName() const { return tr("Common"); } QString trName() const { return QCoreApplication::translate("Debugger", Debugger::Constants::DEBUGGER_COMMON_SETTINGS_PAGE); }
QString category() const { return QLatin1String(Debugger::Constants::DEBUGGER_SETTINGS_CATEGORY); } QString category() const { return QLatin1String(Debugger::Constants::DEBUGGER_SETTINGS_CATEGORY); }
QString trCategory() const { return QCoreApplication::translate("Debugger", Debugger::Constants::DEBUGGER_SETTINGS_CATEGORY); } QString trCategory() const { return QCoreApplication::translate("Debugger", Debugger::Constants::DEBUGGER_SETTINGS_CATEGORY); }
...@@ -988,7 +988,8 @@ void DebuggerPlugin::focusCurrentEditor(IMode *mode) ...@@ -988,7 +988,8 @@ void DebuggerPlugin::focusCurrentEditor(IMode *mode)
void DebuggerPlugin::showSettingsDialog() void DebuggerPlugin::showSettingsDialog()
{ {
Core::ICore::instance()->showOptionsDialog("Debugger", "General"); Core::ICore::instance()->showOptionsDialog(QLatin1String(Debugger::Constants::DEBUGGER_SETTINGS_CATEGORY),
QLatin1String(Debugger::Constants::DEBUGGER_COMMON_SETTINGS_PAGE));
} }
#include "debuggerplugin.moc" #include "debuggerplugin.moc"
......
Supports Markdown
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