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