i18n: drop superfluous QObject* parent

These additional pointers were introduced for translations,
and needed their own tricks to get lupdate to recognize the
strings. Using QCoreApplication::translate() removes the
need to a QObject to provide context. Drop the now-unneeded
parameters.
This commit is contained in:
Adriaan de Groot 2018-02-07 17:12:49 +01:00
parent c71385e93f
commit d27675d660
10 changed files with 19 additions and 20 deletions

View file

@ -462,16 +462,16 @@ UsersPage::addPasswordCheck( const QString& key, const QVariant& value )
{
if ( key == "minLength" )
{
add_check_minLength( this, m_passwordChecks, value );
add_check_minLength( m_passwordChecks, value );
}
else if ( key == "maxLength" )
{
add_check_maxLength( this, m_passwordChecks, value );
add_check_maxLength( m_passwordChecks, value );
}
#ifdef CHECK_PWQUALITY
else if ( key == "libpwquality" )
{
add_check_libpwquality( this, m_passwordChecks, value );
add_check_libpwquality( m_passwordChecks, value );
}
#endif
else