Changeset View
Changeset View
Standalone View
Standalone View
drkonqi/bugzillaintegration/reportassistantpages_base.cpp
Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Line(s) | 98 | return (generator->state() != BacktraceGenerator::NotLoaded && | |||
---|---|---|---|---|---|
99 | generator->state() != BacktraceGenerator::Loading); | 99 | generator->state() != BacktraceGenerator::Loading); | ||
100 | } | 100 | } | ||
101 | 101 | | |||
102 | bool CrashInformationPage::showNextPage() | 102 | bool CrashInformationPage::showNextPage() | ||
103 | { | 103 | { | ||
104 | BacktraceParser::Usefulness use = | 104 | BacktraceParser::Usefulness use = | ||
105 | DrKonqi::debuggerManager()->backtraceGenerator()->parser()->backtraceUsefulness(); | 105 | DrKonqi::debuggerManager()->backtraceGenerator()->parser()->backtraceUsefulness(); | ||
106 | 106 | | |||
107 | if (DrKonqi::ignoreQuality()) { | ||||
108 | return true; | ||||
109 | } | ||||
110 | | ||||
107 | if ((use == BacktraceParser::InvalidUsefulness || use == BacktraceParser::ProbablyUseless | 111 | if ((use == BacktraceParser::InvalidUsefulness || use == BacktraceParser::ProbablyUseless | ||
108 | || use == BacktraceParser::Useless) && m_backtraceWidget->canInstallDebugPackages()) { | 112 | || use == BacktraceParser::Useless) && m_backtraceWidget->canInstallDebugPackages()) { | ||
109 | if ( KMessageBox::Yes == KMessageBox::questionYesNo(this, | 113 | if ( KMessageBox::Yes == KMessageBox::questionYesNo(this, | ||
110 | i18nc("@info","This crash information is not useful enough, " | 114 | i18nc("@info","This crash information is not useful enough, " | ||
111 | "do you want to try to improve it? You will need " | 115 | "do you want to try to improve it? You will need " | ||
112 | "to install some debugging packages."), | 116 | "to install some debugging packages."), | ||
113 | i18nc("@title:window","Crash Information is not useful enough")) ) { | 117 | i18nc("@title:window","Crash Information is not useful enough")) ) { | ||
114 | m_backtraceWidget->hilightExtraDetailsLabel(true); | 118 | m_backtraceWidget->hilightExtraDetailsLabel(true); | ||
Show All 17 Lines | 135 | { | |||
132 | ui.setupUi(this); | 136 | ui.setupUi(this); | ||
133 | 137 | | |||
134 | ui.m_actionsInsideApp->setText(i18nc("@option:check kind of information the user can provide " | 138 | ui.m_actionsInsideApp->setText(i18nc("@option:check kind of information the user can provide " | ||
135 | "about the crash, %1 is the application name", | 139 | "about the crash, %1 is the application name", | ||
136 | "What I was doing when the application \"%1\" crashed", | 140 | "What I was doing when the application \"%1\" crashed", | ||
137 | DrKonqi::crashedApplication()->name())); | 141 | DrKonqi::crashedApplication()->name())); | ||
138 | 142 | | |||
139 | connect(ui.m_rememberGroup, static_cast<void (QButtonGroup::*)(int)>(&QButtonGroup::buttonClicked), this, &BugAwarenessPage::updateCheckBoxes); | 143 | connect(ui.m_rememberGroup, static_cast<void (QButtonGroup::*)(int)>(&QButtonGroup::buttonClicked), this, &BugAwarenessPage::updateCheckBoxes); | ||
144 | // Also listen to toggle so radio buttons are covered. | ||||
145 | connect(ui.m_rememberGroup, static_cast<void (QButtonGroup::*)(int, bool)>(&QButtonGroup::buttonToggled), this, &BugAwarenessPage::updateCheckBoxes); | ||||
140 | 146 | | |||
141 | ui.m_appSpecificDetailsExamples->setVisible(reportInterface()->appDetailsExamples()->hasExamples()); | 147 | ui.m_appSpecificDetailsExamples->setVisible(reportInterface()->appDetailsExamples()->hasExamples()); | ||
142 | ui.m_appSpecificDetailsExamples->setContextMenuPolicy(Qt::NoContextMenu); | 148 | ui.m_appSpecificDetailsExamples->setContextMenuPolicy(Qt::NoContextMenu); | ||
143 | 149 | | |||
144 | connect(ui.m_appSpecificDetailsExamples, &QLabel::linkActivated, this, &BugAwarenessPage::showApplicationDetailsExamples); | 150 | connect(ui.m_appSpecificDetailsExamples, &QLabel::linkActivated, this, &BugAwarenessPage::showApplicationDetailsExamples); | ||
145 | } | 151 | } | ||
146 | 152 | | |||
147 | void BugAwarenessPage::aboutToShow() | 153 | void BugAwarenessPage::aboutToShow() | ||
▲ Show 20 Lines • Show All 316 Lines • Show Last 20 Lines |