Changeset View
Changeset View
Standalone View
Standalone View
drkonqi/debuggermanager.cpp
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Line(s) | |||||
72 | bool DebuggerManager::debuggerIsRunning() const | 72 | bool DebuggerManager::debuggerIsRunning() const | ||
73 | { | 73 | { | ||
74 | return d->debuggerRunning; | 74 | return d->debuggerRunning; | ||
75 | } | 75 | } | ||
76 | 76 | | |||
77 | bool DebuggerManager::showExternalDebuggers() const | 77 | bool DebuggerManager::showExternalDebuggers() const | ||
78 | { | 78 | { | ||
79 | KConfigGroup config(KSharedConfig::openConfig(), "DrKonqi"); | 79 | KConfigGroup config(KSharedConfig::openConfig(), "DrKonqi"); | ||
80 | bool showDebugger = config.readEntry("ShowDebugButton", false); | 80 | return config.readEntry("ShowDebugButton", false); | ||
81 | | ||||
82 | // TODO: remove all these compatibility code when KDE SC 4.11 | | |||
83 | // is considered as totally outdated | | |||
84 | // | | |||
85 | //for compatibility with drkonqi 1.0, if "ShowDebugButton" is not specified in the config | | |||
86 | //and the old "ConfigName" key exists and is set to "developer", we show the debug button. | | |||
87 | if (!config.hasKey("ShowDebugButton") && | | |||
88 | config.readEntry("ConfigName") == QLatin1String("developer")) { | | |||
89 | showDebugger = true; | | |||
90 | // migrate and remove the long deprecated entry | | |||
91 | config.writeEntry("ShowDebugButton", true); | | |||
92 | config.deleteEntry("ConfigName"); | | |||
93 | } | | |||
94 | | ||||
95 | return showDebugger; | | |||
96 | } | 81 | } | ||
97 | 82 | | |||
98 | QList<AbstractDebuggerLauncher*> DebuggerManager::availableExternalDebuggers() const | 83 | QList<AbstractDebuggerLauncher*> DebuggerManager::availableExternalDebuggers() const | ||
99 | { | 84 | { | ||
100 | return d->externalDebuggers; | 85 | return d->externalDebuggers; | ||
101 | } | 86 | } | ||
102 | 87 | | |||
103 | BacktraceGenerator* DebuggerManager::backtraceGenerator() const | 88 | BacktraceGenerator* DebuggerManager::backtraceGenerator() const | ||
Show All 35 Lines |