[partition] Rename slots, to avoid recursion

This commit is contained in:
Adriaan de Groot 2017-12-22 16:20:35 +01:00 committed by Philip
parent 85d60158fa
commit d5d6a0eac3
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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