Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/debugger/framestack/framestackmodel.cpp
Show First 20 Lines • Show All 199 Lines • ▼ Show 20 Line(s) | 199 | } else if (index.column() == 1) { | |||
---|---|---|---|---|---|
200 | if (role == Qt::DisplayRole) { | 200 | if (role == Qt::DisplayRole) { | ||
201 | return QVariant(frame.name); | 201 | return QVariant(frame.name); | ||
202 | } | 202 | } | ||
203 | } else if (index.column() == 2) { | 203 | } else if (index.column() == 2) { | ||
204 | if (role == Qt::DisplayRole) { | 204 | if (role == Qt::DisplayRole) { | ||
205 | QString ret = ICore::self()->projectController() | 205 | QString ret = ICore::self()->projectController() | ||
206 | ->prettyFileName(frame.file, IProjectController::FormatPlain); | 206 | ->prettyFileName(frame.file, IProjectController::FormatPlain); | ||
207 | if (frame.line != -1) { | 207 | if (frame.line != -1) { | ||
208 | ret += ':' + QString::number(frame.line + 1); | 208 | ret += QLatin1Char(':') + QString::number(frame.line + 1); | ||
209 | } | 209 | } | ||
210 | return ret; | 210 | return ret; | ||
211 | } else if (role == Qt::DecorationRole) { | 211 | } else if (role == Qt::DecorationRole) { | ||
212 | QMimeType mime = QMimeDatabase().mimeTypeForUrl(frame.file); | 212 | QMimeType mime = QMimeDatabase().mimeTypeForUrl(frame.file); | ||
213 | return QIcon::fromTheme(mime.iconName()); | 213 | return QIcon::fromTheme(mime.iconName()); | ||
214 | } else if (role == Qt::TextColorRole) { | 214 | } else if (role == Qt::TextColorRole) { | ||
215 | const auto fileName = frame.file.toLocalFile(); | 215 | const auto fileName = frame.file.toLocalFile(); | ||
216 | auto cacheIt = d->m_fileExistsCache.find(fileName); | 216 | auto cacheIt = d->m_fileExistsCache.find(fileName); | ||
▲ Show 20 Lines • Show All 193 Lines • Show Last 20 Lines |