Changeset View
Changeset View
Standalone View
Standalone View
src/backtracewidget.cpp
Show First 20 Lines • Show All 333 Lines • ▼ Show 20 Line(s) | |||||
334 | 334 | | |||
335 | void BacktraceWidget::saveClicked() | 335 | void BacktraceWidget::saveClicked() | ||
336 | { | 336 | { | ||
337 | DrKonqi::saveReport(m_btGenerator->backtrace(), this); | 337 | DrKonqi::saveReport(m_btGenerator->backtrace(), this); | ||
338 | } | 338 | } | ||
339 | 339 | | |||
340 | void BacktraceWidget::hilightExtraDetailsLabel(bool hilight) | 340 | void BacktraceWidget::hilightExtraDetailsLabel(bool hilight) | ||
341 | { | 341 | { | ||
342 | QString stylesheet; | 342 | const QString stylesheet = ((!hilight) | ||
343 | if (hilight) { | 343 | ? QLatin1String("border-width: 0px;") | ||
344 | stylesheet = QLatin1String("border-width: 2px; " | 344 | : QLatin1String("border-width: 2px; " | ||
345 | "border-style: solid; " | 345 | "border-style: solid; " | ||
346 | "border-color: red;"); | 346 | "border-color: red;")) | ||
347 | } else { | 347 | + QLatin1String(extraDetailsLabelMargin); | ||
348 | stylesheet = QLatin1String("border-width: 0px;"); | 348 | | ||
349 | } | | |||
350 | stylesheet += QLatin1String(extraDetailsLabelMargin); | | |||
351 | ui.m_extraDetailsLabel->setStyleSheet(stylesheet); | 349 | ui.m_extraDetailsLabel->setStyleSheet(stylesheet); | ||
352 | } | 350 | } | ||
353 | 351 | | |||
354 | void BacktraceWidget::focusImproveBacktraceButton() | 352 | void BacktraceWidget::focusImproveBacktraceButton() | ||
355 | { | 353 | { | ||
356 | ui.m_installDebugButton->setFocus(); | 354 | ui.m_installDebugButton->setFocus(); | ||
357 | } | 355 | } | ||
358 | 356 | | |||
Show All 32 Lines | 387 | if (link.startsWith(QLatin1String("http"))) { | |||
391 | QDesktopServices::openUrl(QUrl(link)); | 389 | QDesktopServices::openUrl(QUrl(link)); | ||
392 | } else if (link == QLatin1String("#missingDebugPackages")) { | 390 | } else if (link == QLatin1String("#missingDebugPackages")) { | ||
393 | BacktraceParser * btParser = m_btGenerator->parser(); | 391 | BacktraceParser * btParser = m_btGenerator->parser(); | ||
394 | 392 | | |||
395 | QStringList missingDbgForFiles = btParser->librariesWithMissingDebugSymbols().toList(); | 393 | QStringList missingDbgForFiles = btParser->librariesWithMissingDebugSymbols().toList(); | ||
396 | missingDbgForFiles.insert(0, DrKonqi::crashedApplication()->executable().absoluteFilePath()); | 394 | missingDbgForFiles.insert(0, DrKonqi::crashedApplication()->executable().absoluteFilePath()); | ||
397 | 395 | | |||
398 | //HTML message | 396 | //HTML message | ||
399 | QString message = QStringLiteral("<html>"); | 397 | QString message = QStringLiteral("<html>") | ||
400 | message += i18n("The packages containing debug information for the following application and libraries are missing:"); | 398 | + i18n("The packages containing debug information for the following application and libraries are missing:") | ||
401 | message += QStringLiteral("<br /><ul>"); | 399 | + QStringLiteral("<br /><ul>"); | ||
402 | 400 | | |||
403 | Q_FOREACH(const QString & string, missingDbgForFiles) { | 401 | Q_FOREACH(const QString & string, missingDbgForFiles) { | ||
404 | message += QStringLiteral("<li>") + string + QStringLiteral("</li>"); | 402 | message += QStringLiteral("<li>") + string + QStringLiteral("</li>"); | ||
405 | } | 403 | } | ||
406 | 404 | | |||
407 | message += QStringLiteral("</ul></html>"); | 405 | message += QStringLiteral("</ul></html>"); | ||
408 | 406 | | |||
409 | KMessageBox::information(this, message, i18nc("messagebox title","Missing debug information packages")); | 407 | KMessageBox::information(this, message, i18nc("messagebox title","Missing debug information packages")); | ||
410 | } | 408 | } | ||
411 | } | 409 | } | ||
412 | 410 | |