[partition] Modernize signal-slot connection

This commit is contained in:
Adriaan de Groot 2024-02-22 20:43:05 +01:00
parent 9d1fec3668
commit 903fed07a9

View File

@ -549,9 +549,9 @@ ChoicePage::applyActionChoice( InstallChoice choice )
this ); this );
} }
connect( m_beforePartitionBarsView->selectionModel(), connect( m_beforePartitionBarsView->selectionModel(),
SIGNAL( currentRowChanged( QModelIndex, QModelIndex ) ), &QItemSelectionModel::currentRowChanged,
this, this,
SLOT( onPartitionToReplaceSelected( QModelIndex, QModelIndex ) ), &ChoicePage::onPartitionToReplaceSelected,
Qt::UniqueConnection ); Qt::UniqueConnection );
// Maintain the selection for replace // Maintain the selection for replace
@ -582,9 +582,9 @@ ChoicePage::applyActionChoice( InstallChoice choice )
} }
connect( m_beforePartitionBarsView->selectionModel(), connect( m_beforePartitionBarsView->selectionModel(),
SIGNAL( currentRowChanged( QModelIndex, QModelIndex ) ), &QItemSelectionModel::currentRowChanged,
this, this,
SLOT( doAlongsideSetupSplitter( QModelIndex, QModelIndex ) ), &ChoicePage::doAlongsideSetupSplitter,
Qt::UniqueConnection ); Qt::UniqueConnection );
break; break;
case InstallChoice::NoChoice: case InstallChoice::NoChoice: