diff --git a/src/bugzillaintegration/reportassistantpages_base.h b/src/bugzillaintegration/reportassistantpages_base.h --- a/src/bugzillaintegration/reportassistantpages_base.h +++ b/src/bugzillaintegration/reportassistantpages_base.h @@ -74,8 +74,6 @@ void aboutToHide() override; private Q_SLOTS: - void showApplicationDetailsExamples(); - void updateCheckBoxes(); private: diff --git a/src/bugzillaintegration/reportassistantpages_base.cpp b/src/bugzillaintegration/reportassistantpages_base.cpp --- a/src/bugzillaintegration/reportassistantpages_base.cpp +++ b/src/bugzillaintegration/reportassistantpages_base.cpp @@ -22,6 +22,7 @@ #include #include +#include #include #include @@ -145,9 +146,10 @@ connect(ui.m_rememberGroup, static_cast(&QButtonGroup::buttonToggled), this, &BugAwarenessPage::updateCheckBoxes); ui.m_appSpecificDetailsExamples->setVisible(reportInterface()->appDetailsExamples()->hasExamples()); - ui.m_appSpecificDetailsExamples->setContextMenuPolicy(Qt::NoContextMenu); - - connect(ui.m_appSpecificDetailsExamples, &QLabel::linkActivated, this, &BugAwarenessPage::showApplicationDetailsExamples); + ui.m_appSpecificDetailsExamples->setText( + i18nc("@label examples about information the user can provide", + "Examples: %1", reportInterface()->appDetailsExamples()->examples())); + ui.m_appSpecificDetailsExamples->setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont)); } void BugAwarenessPage::aboutToShow() @@ -200,14 +202,6 @@ ui.m_appSpecificDetailsExamples->setEnabled(rememberSituation); } -void BugAwarenessPage::showApplicationDetailsExamples() -{ - QToolTip::showText(QCursor::pos(), - i18nc("@label examples about information the user can provide", - "Examples: %1", reportInterface()->appDetailsExamples()->examples()), - this); -} - //END BugAwarenessPage //BEGIN ConclusionPage diff --git a/src/bugzillaintegration/ui/assistantpage_bugawareness.ui b/src/bugzillaintegration/ui/assistantpage_bugawareness.ui --- a/src/bugzillaintegration/ui/assistantpage_bugawareness.ui +++ b/src/bugzillaintegration/ui/assistantpage_bugawareness.ui @@ -10,7 +10,7 @@ 319 - + @@ -238,65 +238,63 @@ 0 - - - false - - - Check this option if you can provide application specific details or settings that may be related to the crash. You can check the examples (if available.) - - - Check this option if you can provide application specific details or settings that may be related to the crash. You can check the examples (if available.) - - - Custom settings of the application that may be related - - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 10 - 20 - - - - - - - - false - - - - 0 - 0 - - - - <a href="#">Examples</a> - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - + + + + + false + + + Check this option if you can provide application specific details or settings that may be related to the crash. + + + Check this option if you can provide application specific details or settings that may be related to the crash. + + + Custom settings of the application that may be related + + + + + + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 24 + 20 + + + + + + + + false + + + + 0 + 0 + + + + //Examples// + + + true + + + + + +