From ffed7b6d7133922be6c3412c9c0a45b3b70a53da Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Wed, 23 Sep 2020 11:16:23 +0200 Subject: [PATCH] [partition] Warnings-- over QButtonGroup - this was deprecated in 5.15 and an alternative introduced also in 5.15, so it's a pain in the butt for backwards-compatibility. --- src/modules/partition/gui/ChoicePage.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/modules/partition/gui/ChoicePage.cpp b/src/modules/partition/gui/ChoicePage.cpp index 6b4b8b659..2e965ad93 100644 --- a/src/modules/partition/gui/ChoicePage.cpp +++ b/src/modules/partition/gui/ChoicePage.cpp @@ -270,7 +270,12 @@ ChoicePage::setupChoices() m_itemsLayout->addStretch(); - connect( m_grp, QOverload< int, bool >::of( &QButtonGroup::buttonToggled ), this, [this]( int id, bool checked ) { +#if ( QT_VERSION < QT_VERSION_CHECK( 5, 15, 0 ) ) + auto buttonSignal = QOverload< int, bool >::of( &QButtonGroup::buttonToggled ); +#else + auto buttonSignal = &QButtonGroup::idToggled; +#endif + connect( m_grp, buttonSignal, this, [this]( int id, bool checked ) { if ( checked ) // An action was picked. { m_choice = static_cast< InstallChoice >( id );