From 903fed07a9488c9ddbb6cf2d0d41e0aa31f2497f Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Thu, 22 Feb 2024 20:43:05 +0100 Subject: [PATCH] [partition] Modernize signal-slot connection --- src/modules/partition/gui/ChoicePage.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/partition/gui/ChoicePage.cpp b/src/modules/partition/gui/ChoicePage.cpp index 34d94356f..8a1313237 100644 --- a/src/modules/partition/gui/ChoicePage.cpp +++ b/src/modules/partition/gui/ChoicePage.cpp @@ -549,9 +549,9 @@ ChoicePage::applyActionChoice( InstallChoice choice ) this ); } connect( m_beforePartitionBarsView->selectionModel(), - SIGNAL( currentRowChanged( QModelIndex, QModelIndex ) ), + &QItemSelectionModel::currentRowChanged, this, - SLOT( onPartitionToReplaceSelected( QModelIndex, QModelIndex ) ), + &ChoicePage::onPartitionToReplaceSelected, Qt::UniqueConnection ); // Maintain the selection for replace @@ -582,9 +582,9 @@ ChoicePage::applyActionChoice( InstallChoice choice ) } connect( m_beforePartitionBarsView->selectionModel(), - SIGNAL( currentRowChanged( QModelIndex, QModelIndex ) ), + &QItemSelectionModel::currentRowChanged, this, - SLOT( doAlongsideSetupSplitter( QModelIndex, QModelIndex ) ), + &ChoicePage::doAlongsideSetupSplitter, Qt::UniqueConnection ); break; case InstallChoice::NoChoice: