[libcalamares] Use Q_EMIT instead of 'emit'

This commit is contained in:
Adriaan de Groot 2022-06-10 01:04:43 +02:00
parent f8dd3ea133
commit 9f91b50553

View File

@ -91,7 +91,7 @@ RequirementsChecker::addCheckedRequirements( Module* m )
m_model->addRequirementsList( l );
}
requirementsProgress( tr( "Requirements checking for module <i>%1</i> is complete." ).arg( m->name() ) );
Q_EMIT requirementsProgress( tr( "Requirements checking for module <i>%1</i> is complete." ).arg( m->name() ) );
}
void
@ -117,11 +117,11 @@ RequirementsChecker::reportProgress()
unsigned int posInterval = ( m_progressTimer->interval() < 0 ) ? 1000 : uint( m_progressTimer->interval() );
QString waiting = tr( "Waiting for %n module(s).", "", remaining );
QString elapsed = tr( "(%n second(s))", "", m_progressTimeouts * posInterval / 1000 );
emit requirementsProgress( waiting + QString( " " ) + elapsed );
Q_EMIT requirementsProgress( waiting + QString( " " ) + elapsed );
}
else
{
emit requirementsProgress( tr( "System-requirements checking is complete." ) );
Q_EMIT requirementsProgress( tr( "System-requirements checking is complete." ) );
}
}