Commit 032e9d9d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Compile without deprecated method

parent 7efdd85e
......@@ -30,6 +30,8 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS I18n CoreAddons Service
Notifications IdleTime WindowSystem SyntaxHighlighting)
find_package(Qt5X11Extras ${QT_MIN_VERSION} CONFIG)
set_package_properties(Qt5X11Extras PROPERTIES TYPE RECOMMENDED PURPOSE "Recommended for better integration on X11.")
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050e00)
add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x054C00)
if (MINGW)
find_package(ZLIB REQUIRED)
......
......@@ -135,9 +135,9 @@ BugAwarenessPage::BugAwarenessPage(ReportAssistantDialog * parent)
"What I was doing when the application \"%1\" crashed",
DrKonqi::crashedApplication()->name()));
connect(ui.m_rememberGroup, static_cast<void (QButtonGroup::*)(int)>(&QButtonGroup::buttonClicked), this, &BugAwarenessPage::updateCheckBoxes);
connect(ui.m_rememberGroup, &QButtonGroup::idPressed, this, &BugAwarenessPage::updateCheckBoxes);
// Also listen to toggle so radio buttons are covered.
connect(ui.m_rememberGroup, static_cast<void (QButtonGroup::*)(int, bool)>(&QButtonGroup::buttonToggled), this, &BugAwarenessPage::updateCheckBoxes);
connect(ui.m_rememberGroup, &QButtonGroup::idPressed, this, &BugAwarenessPage::updateCheckBoxes);
ui.m_appSpecificDetailsExamplesWidget->setVisible(
reportInterface()->appDetailsExamples()->hasExamples());
......
......@@ -999,9 +999,9 @@ BugzillaReportConfirmationDialog::BugzillaReportConfirmationDialog(int bugNumber
connect(ui.buttonGroupProceed, SIGNAL(buttonClicked(int)), this, SLOT(checkProceed()));
connect(ui.buttonGroupProceedQuestion, SIGNAL(buttonClicked(int)), this, SLOT(checkProceed()));
// Also listen to toggle so radio buttons are covered.
connect(ui.buttonGroupProceed, static_cast<void (QButtonGroup::*)(int, bool)>(&QButtonGroup::buttonToggled),
connect(ui.buttonGroupProceed, &QButtonGroup::idPressed,
this, &BugzillaReportConfirmationDialog::checkProceed);
connect(ui.buttonGroupProceedQuestion, static_cast<void (QButtonGroup::*)(int, bool)>(&QButtonGroup::buttonToggled),
connect(ui.buttonGroupProceedQuestion, &QButtonGroup::idPressed,
this, &BugzillaReportConfirmationDialog::checkProceed);
if (!m_showProceedQuestion) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment