[users] Apply coding style

This commit is contained in:
Adriaan de Groot 2019-11-01 13:39:16 +01:00
parent 9fa817a244
commit 28c9da414b

View File

@ -322,18 +322,16 @@ UsersPage::validateUsernameText( const QString& textRef )
} }
else if ( val_start.validate( text, pos ) == QValidator::Invalid ) else if ( val_start.validate( text, pos ) == QValidator::Invalid )
{ {
labelError( labelError( ui->labelUsername,
ui->labelUsername, ui->labelUsernameError,
ui->labelUsernameError, tr( "Your username must start with a lowercase letter or underscore." ) );
tr( "Your username must start with a lowercase letter or underscore." ) );
m_readyUsername = false; m_readyUsername = false;
} }
else if ( val_whole.validate( text, pos ) == QValidator::Invalid ) else if ( val_whole.validate( text, pos ) == QValidator::Invalid )
{ {
labelError( labelError( ui->labelUsername,
ui->labelUsername, ui->labelUsernameError,
ui->labelUsernameError, tr( "Only lowercase letters, numbers, underscore and hyphen are allowed." ) );
tr( "Only lowercase letters, numbers, underscore and hyphen are allowed." ) );
m_readyUsername = false; m_readyUsername = false;
} }
else else