Changeset View
Changeset View
Standalone View
Standalone View
src/drkonqidialog.cpp
Show All 23 Lines | |||||
24 | 24 | | |||
25 | #include <QStandardPaths> | 25 | #include <QStandardPaths> | ||
26 | #include <QMenu> | 26 | #include <QMenu> | ||
27 | #include <QDialogButtonBox> | 27 | #include <QDialogButtonBox> | ||
28 | #include "drkonqi_debug.h" | 28 | #include "drkonqi_debug.h" | ||
29 | #include <QDesktopServices> | 29 | #include <QDesktopServices> | ||
30 | #include <QTabBar> | 30 | #include <QTabBar> | ||
31 | #include <QTabWidget> | 31 | #include <QTabWidget> | ||
32 | #include <QLocale> | ||||
32 | 33 | | |||
33 | #include "drkonqi.h" | 34 | #include "drkonqi.h" | ||
34 | #include "backtracewidget.h" | 35 | #include "backtracewidget.h" | ||
35 | #include "aboutbugreportingdialog.h" | 36 | #include "aboutbugreportingdialog.h" | ||
36 | #include "crashedapplication.h" | 37 | #include "crashedapplication.h" | ||
37 | #include "debuggermanager.h" | 38 | #include "debuggermanager.h" | ||
38 | #include "debuggerlaunchers.h" | 39 | #include "debuggerlaunchers.h" | ||
39 | #include "drkonqi_globals.h" | 40 | #include "drkonqi_globals.h" | ||
▲ Show 20 Lines • Show All 109 Lines • ▼ Show 20 Line(s) | 147 | reportMessage = xi18nc("@info", "<para>You cannot report this error, because " | |||
149 | crashedApp->name() | 150 | crashedApp->name() | ||
150 | ); | 151 | ); | ||
151 | } | 152 | } | ||
152 | ui.infoLabel->setText(reportMessage); | 153 | ui.infoLabel->setText(reportMessage); | ||
153 | connect(ui.infoLabel, &QLabel::linkActivated, this, &DrKonqiDialog::linkActivated); | 154 | connect(ui.infoLabel, &QLabel::linkActivated, this, &DrKonqiDialog::linkActivated); | ||
154 | 155 | | |||
155 | ui.detailsTitleLabel->setText(QStringLiteral("<strong>%1</strong>").arg(i18nc("@label","Details:"))); | 156 | ui.detailsTitleLabel->setText(QStringLiteral("<strong>%1</strong>").arg(i18nc("@label","Details:"))); | ||
156 | 157 | | |||
158 | QLocale locale; | ||||
157 | ui.detailsLabel->setText(xi18nc("@info Note the time information is divided into date and time parts", | 159 | ui.detailsLabel->setText(xi18nc("@info Note the time information is divided into date and time parts", | ||
158 | "<para>Executable: <application>%1" | 160 | "<para>Executable: <application>%1" | ||
159 | "</application> PID: %2 Signal: %3 (%4) " | 161 | "</application> PID: %2 Signal: %3 (%4) " | ||
160 | "Time: %5 %6</para>", | 162 | "Time: %5 %6</para>", | ||
161 | crashedApp->fakeExecutableBaseName(), | 163 | crashedApp->fakeExecutableBaseName(), | ||
162 | crashedApp->pid(), | 164 | crashedApp->pid(), | ||
163 | crashedApp->signalName(), | 165 | crashedApp->signalName(), | ||
164 | #if defined(Q_OS_UNIX) | 166 | #if defined(Q_OS_UNIX) | ||
165 | crashedApp->signalNumber(), | 167 | crashedApp->signalNumber(), | ||
166 | #else | 168 | #else | ||
167 | //windows uses weird big numbers for exception codes, | 169 | //windows uses weird big numbers for exception codes, | ||
168 | //so it doesn't make sense to display them in decimal | 170 | //so it doesn't make sense to display them in decimal | ||
169 | QString().asprintf("0x%8x", crashedApp->signalNumber()), | 171 | QString().asprintf("0x%8x", crashedApp->signalNumber()), | ||
170 | #endif | 172 | #endif | ||
171 | crashedApp->datetime().date().toString(Qt::DefaultLocaleShortDate), | 173 | locale.toString(crashedApp->datetime().date(), QLocale::ShortFormat), | ||
172 | 174 | | |||
173 | crashedApp->datetime().time().toString() | 175 | locale.toString(crashedApp->datetime().time())) | ||
174 | )); | 176 | ); | ||
175 | } | 177 | } | ||
176 | 178 | | |||
177 | void DrKonqiDialog::buildDialogButtons() | 179 | void DrKonqiDialog::buildDialogButtons() | ||
178 | { | 180 | { | ||
179 | const CrashedApplication *crashedApp = DrKonqi::crashedApplication(); | 181 | const CrashedApplication *crashedApp = DrKonqi::crashedApplication(); | ||
180 | 182 | | |||
181 | //Set dialog buttons | 183 | //Set dialog buttons | ||
182 | m_buttonBox->setStandardButtons(QDialogButtonBox::Close); | 184 | m_buttonBox->setStandardButtons(QDialogButtonBox::Close); | ||
▲ Show 20 Lines • Show All 146 Lines • Show Last 20 Lines |