Changeset View
Changeset View
Standalone View
Standalone View
src/debugger.cpp
Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Line(s) | |||||
99 | { | 99 | { | ||
100 | if (!isValid() || !m_config->hasGroup(m_backend)) { | 100 | if (!isValid() || !m_config->hasGroup(m_backend)) { | ||
101 | return false; | 101 | return false; | ||
102 | } else { | 102 | } else { | ||
103 | return m_config->group(m_backend).readEntry("Terminal", false); | 103 | return m_config->group(m_backend).readEntry("Terminal", false); | ||
104 | } | 104 | } | ||
105 | } | 105 | } | ||
106 | 106 | | |||
107 | QString Debugger::backendValueOfParameter(const QString &key) const | ||||
108 | { | ||||
109 | if (!isValid() || !m_config->hasGroup(m_backend)) { | ||||
110 | return QString(); | ||||
111 | } else { | ||||
112 | return m_config->group(m_backend).readEntry(key, QString()); | ||||
113 | } | ||||
114 | } | ||||
115 | | ||||
107 | //static | 116 | //static | ||
108 | void Debugger::expandString(QString & str, ExpandStringUsage usage, const QString & tempFile) | 117 | void Debugger::expandString(QString & str, ExpandStringUsage usage, const QString & tempFile) | ||
109 | { | 118 | { | ||
110 | const CrashedApplication *appInfo = DrKonqi::crashedApplication(); | 119 | const CrashedApplication *appInfo = DrKonqi::crashedApplication(); | ||
111 | QHash<QString, QString> map; | 120 | QHash<QString, QString> map; | ||
112 | map[QLatin1String("progname")] = appInfo->name(); | 121 | map[QLatin1String("progname")] = appInfo->name(); | ||
113 | map[QLatin1String("execname")] = appInfo->fakeExecutableBaseName(); | 122 | map[QLatin1String("execname")] = appInfo->fakeExecutableBaseName(); | ||
114 | map[QLatin1String("execpath")] = appInfo->executable().absoluteFilePath(); | 123 | map[QLatin1String("execpath")] = appInfo->executable().absoluteFilePath(); | ||
Show All 30 Lines |