[partition] Switch to 'modern' Error/ok icons

This commit is contained in:
Adriaan de Groot 2020-07-29 13:42:56 +02:00
parent 892e9798f4
commit 43cd415d9a

View File

@ -141,15 +141,16 @@ EncryptWidget::onPassphraseEdited()
m_ui->m_iconLabel->setToolTip( QString() ); m_ui->m_iconLabel->setToolTip( QString() );
if ( p1.isEmpty() && p2.isEmpty() ) if ( p1.isEmpty() && p2.isEmpty() )
{ {
m_ui->m_iconLabel->clear(); applyPixmap( m_ui->m_iconLabel, CalamaresUtils::StatusWarning );
m_ui->m_iconLabel->setToolTip( tr( "Please enter the same passphrase in both boxes." ) );
} }
else if ( p1 == p2 ) else if ( p1 == p2 )
{ {
applyPixmap( m_ui->m_iconLabel, CalamaresUtils::Yes ); applyPixmap( m_ui->m_iconLabel, CalamaresUtils::StatusOk );
} }
else else
{ {
applyPixmap( m_ui->m_iconLabel, CalamaresUtils::No ); applyPixmap( m_ui->m_iconLabel, CalamaresUtils::StatusError );
m_ui->m_iconLabel->setToolTip( tr( "Please enter the same passphrase in both boxes." ) ); m_ui->m_iconLabel->setToolTip( tr( "Please enter the same passphrase in both boxes." ) );
} }