Changeset View
Changeset View
Standalone View
Standalone View
src/kbugreport.cpp
Show First 20 Lines • Show All 238 Lines • ▼ Show 20 Line(s) | 105 | { | |||
---|---|---|---|---|---|
239 | glay->addWidget(tmpLabel, row, 1, 1, 2); | 239 | glay->addWidget(tmpLabel, row, 1, 1, 2); | ||
240 | 240 | | |||
241 | if (d->bugDestination == KBugReportPrivate::CustomEmail) { | 241 | if (d->bugDestination == KBugReportPrivate::CustomEmail) { | ||
242 | // Severity | 242 | // Severity | ||
243 | d->m_bgSeverity = new QGroupBox(i18n("Se&verity"), this); | 243 | d->m_bgSeverity = new QGroupBox(i18n("Se&verity"), this); | ||
244 | 244 | | |||
245 | struct SeverityData { QString name; QString text; }; | 245 | struct SeverityData { QString name; QString text; }; | ||
246 | const std::array<SeverityData, 5> severityData = { { | 246 | const std::array<SeverityData, 5> severityData = { { | ||
247 | { QStringLiteral("critical"), i18n("Critical") }, | 247 | { QStringLiteral("critical"), i18nc("bug severity", "Critical") }, | ||
248 | { QStringLiteral("grave"), i18n("Grave") }, | 248 | { QStringLiteral("grave"), i18nc("bug severity", "Grave") }, | ||
249 | { QStringLiteral("normal"), i18nc("normal severity", "Normal") }, | 249 | { QStringLiteral("normal"), i18nc("bug severity", "Normal") }, | ||
250 | { QStringLiteral("wishlist"), i18n("Wishlist") }, | 250 | { QStringLiteral("wishlist"), i18nc("bug severity", "Wishlist") }, | ||
251 | { QStringLiteral("i18n"), i18n("Translation") }, | 251 | { QStringLiteral("i18n"), i18nc("bug severity", "Translation") }, | ||
252 | } }; | 252 | } }; | ||
253 | 253 | | |||
254 | QHBoxLayout *severityLayout = new QHBoxLayout(d->m_bgSeverity); | 254 | QHBoxLayout *severityLayout = new QHBoxLayout(d->m_bgSeverity); | ||
255 | for (auto& severityDatum : severityData) { | 255 | for (auto& severityDatum : severityData) { | ||
256 | // Store the severity string as the name | 256 | // Store the severity string as the name | ||
257 | QRadioButton *rb = new QRadioButton(severityDatum.text, d->m_bgSeverity); | 257 | QRadioButton *rb = new QRadioButton(severityDatum.text, d->m_bgSeverity); | ||
258 | rb->setObjectName(severityDatum.name); | 258 | rb->setObjectName(severityDatum.name); | ||
259 | d->severityButtons.append(rb); | 259 | d->severityButtons.append(rb); | ||
▲ Show 20 Lines • Show All 333 Lines • Show Last 20 Lines |