[users] Apply coding style
This commit is contained in:
parent
9fa817a244
commit
28c9da414b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user