From 24422b19bdd5e01e7e4e13f37f43f0cf525e01c2 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Mon, 21 Jan 2019 08:20:01 -0500 Subject: [PATCH] [partition] Idiomatic connect() usage --- src/modules/partition/gui/ChoicePage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/partition/gui/ChoicePage.cpp b/src/modules/partition/gui/ChoicePage.cpp index 3c9895642..693f801ce 100644 --- a/src/modules/partition/gui/ChoicePage.cpp +++ b/src/modules/partition/gui/ChoicePage.cpp @@ -289,7 +289,7 @@ ChoicePage::setupChoices() m_itemsLayout->addStretch(); - connect( m_grp, static_cast< void( QButtonGroup::* )( int, bool ) >( &QButtonGroup::buttonToggled ), + connect( m_grp, QOverload::of( &QButtonGroup::buttonToggled ), this, [ this ]( int id, bool checked ) { if ( checked ) // An action was picked. @@ -1206,7 +1206,7 @@ ChoicePage::createBootloaderComboBox( QWidget* parent ) bcb->setModel( m_core->bootLoaderModel() ); // When the chosen bootloader device changes, we update the choice in the PCM - connect( bcb, static_cast< void (QComboBox::*)(int) >( &QComboBox::currentIndexChanged ), + connect( bcb, QOverload::of( &QComboBox::currentIndexChanged ), this, [this]( int newIndex ) { QComboBox* bcb = qobject_cast< QComboBox* >( sender() );