[partition] Rename slots, to avoid recursion

main
Adriaan de Groot 7 years ago
parent cc15dd9ec7
commit 7ce52ecda7

@ -22,7 +22,7 @@ PartitionJob::PartitionJob( Partition* partition )
: m_partition( partition )
{}
void PartitionJob::progress(int percent)
void PartitionJob::iprogress(int percent)
{
if ( percent < 0 )
percent = 0;

@ -43,7 +43,7 @@ public slots:
* KPMCore presents progress as an integer percent from 0 .. 100,
* while Calamares uses a qreal from 0 .. 1.00 .
*/
void progress( int percent );
void iprogress( int percent );
protected:
Partition* m_partition;

@ -80,7 +80,7 @@ ResizePartitionJob::exec()
m_partition->setLastSector( m_oldLastSector );
ResizeOperation op(*m_device, *m_partition, m_newFirstSector, m_newLastSector);
op.setStatus(Operation::StatusRunning);
connect(&op, &Operation::progress, this, &ResizePartitionJob::progress );
connect(&op, &Operation::progress, this, &ResizePartitionJob::iprogress );
QString errorMessage = tr( "The installer failed to resize partition %1 on disk '%2'." )
.arg( m_partition->partitionPath() )

Loading…
Cancel
Save