mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 08:58:22 -04:00
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:
parent
c71385e93f
commit
d27675d660
10 changed files with 19 additions and 20 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue