Changeset View
Changeset View
Standalone View
Standalone View
src/bugzillaintegration/reportassistantpages_base.cpp
Show First 20 Lines • Show All 140 Lines • ▼ Show 20 Line(s) | |||||
141 | { | 141 | { | ||
142 | ui.setupUi(this); | 142 | ui.setupUi(this); | ||
143 | 143 | | |||
144 | ui.m_actionsInsideApp->setText(i18nc("@option:check kind of information the user can provide " | 144 | ui.m_actionsInsideApp->setText(i18nc("@option:check kind of information the user can provide " | ||
145 | "about the crash, %1 is the application name", | 145 | "about the crash, %1 is the application name", | ||
146 | "What I was doing when the application \"%1\" crashed", | 146 | "What I was doing when the application \"%1\" crashed", | ||
147 | DrKonqi::crashedApplication()->name())); | 147 | DrKonqi::crashedApplication()->name())); | ||
148 | 148 | | |||
149 | #if QT_VERSION < QT_VERSION_CHECK(5, 15, 0) | 149 | connect(ui.m_rememberGroup, static_cast<void (QButtonGroup::*)(int)>(&QButtonGroup::buttonClicked), | ||
150 | connect(ui.m_rememberGroup, static_cast<void (QButtonGroup::*)(int)>(&QButtonGroup::buttonClicked), this, &BugAwarenessPage::updateCheckBoxes); | 150 | this, &BugAwarenessPage::updateCheckBoxes); | ||
151 | // Also listen to toggle so radio buttons are covered. | 151 | // Also listen to toggle so radio buttons are covered. | ||
152 | connect(ui.m_rememberGroup, static_cast<void (QButtonGroup::*)(int, bool)>(&QButtonGroup::buttonToggled), this, &BugAwarenessPage::updateCheckBoxes); | 152 | connect(ui.m_rememberGroup, static_cast<void (QButtonGroup::*)(int, bool)>(&QButtonGroup::buttonToggled), | ||
153 | #else | 153 | this, &BugAwarenessPage::updateCheckBoxes); | ||
154 | connect(ui.m_rememberGroup, &QButtonGroup::buttonClicked, this, &BugAwarenessPage::updateCheckBoxes); | | |||
155 | // Also listen to toggle so radio buttons are covered. | | |||
156 | connect(ui.m_rememberGroup, &QButtonGroup::buttonToggled, this, &BugAwarenessPage::updateCheckBoxes); | | |||
157 | #endif | | |||
158 | 154 | | |||
159 | ui.m_appSpecificDetailsExamplesWidget->setVisible( | 155 | ui.m_appSpecificDetailsExamplesWidget->setVisible( | ||
160 | reportInterface()->appDetailsExamples()->hasExamples()); | 156 | reportInterface()->appDetailsExamples()->hasExamples()); | ||
161 | ui.m_appSpecificDetailsExamples->setText( | 157 | ui.m_appSpecificDetailsExamples->setText( | ||
162 | i18nc("@label examples about information the user can provide", | 158 | i18nc("@label examples about information the user can provide", | ||
163 | "Examples: %1", reportInterface()->appDetailsExamples()->examples())); | 159 | "Examples: %1", reportInterface()->appDetailsExamples()->examples())); | ||
164 | ui.m_appSpecificDetailsExamples->setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont)); | 160 | ui.m_appSpecificDetailsExamples->setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont)); | ||
165 | 161 | | |||
▲ Show 20 Lines • Show All 301 Lines • Show Last 20 Lines |