KWidgetsAddons
knewpasswordwidget.cpp
87 palette.setColor(QPalette::Active, QPalette::Base, (match || partialMatch) ? defaultBackgroundColor : backgroundWarningColor);
92 (20 * ui.linePassword->password().length() + 80 * effectivePasswordLength(ui.linePassword->password())) / qMax(reasonablePasswordLength, 2);
void setRevealPasswordAvailable(bool reveal)
Whether to show the visibility trailing action in the line edit.
Definition knewpasswordwidget.cpp:311
void passwordStatusChanged()
Notify about the current status of the password being typed.
@ PasswordNotVerified
Password and verification password don't match.
Definition knewpasswordwidget.h:90
@ WeakPassword
Passwords match but the strength level is not enough.
Definition knewpasswordwidget.h:91
@ EmptyPasswordNotAllowed
Both passwords fields empty, but minimum length > 0.
Definition knewpasswordwidget.h:88
KNewPasswordWidget(QWidget *parent=nullptr)
Constructs a password widget.
Definition knewpasswordwidget.cpp:193
void setAllowEmptyPasswords(bool allowed)
Allow empty passwords? - Default: true.
Definition knewpasswordwidget.cpp:262
bool isRevealPasswordAvailable() const
Whether the visibility trailing action in the line edit is visible.
Definition knewpasswordwidget.cpp:245
void setPasswordStrengthWarningLevel(int warningLevel)
Set the password strength level below which a warning is given The value is guaranteed to be in the r...
Definition knewpasswordwidget.cpp:291
void setBackgroundWarningColor(const QColor &color)
When the verification password does not match, the background color of the verification field is set ...
Definition knewpasswordwidget.cpp:296
void setReasonablePasswordLength(int reasonableLength)
Password length that is expected to be reasonably safe.
Definition knewpasswordwidget.cpp:286
void setPasswordStrengthMeterVisible(bool visible)
Whether to show the password strength meter (label and progress bar).
Definition knewpasswordwidget.cpp:302
void setMaximumPasswordLength(int maxLength)
Maximum acceptable password length.
Definition knewpasswordwidget.cpp:274
bool isPasswordStrengthMeterVisible() const
Whether the password strength meter is visible.
Definition knewpasswordwidget.cpp:237
void setRevealPasswordMode(KPassword::RevealMode revealPasswordMode)
Set when the reveal password button will be visible.
Definition knewpasswordwidget.cpp:318
void setMinimumPasswordLength(int minLength)
Minimum acceptable password length.
Definition knewpasswordwidget.cpp:268
void echoModeChanged(QLineEdit::EchoMode echoMode)
When we click on visibility icon echo mode is switched between Normal echo mode and Password echo mod...
Q_SCRIPTABLE CaptureState status()
KCOREADDONS_EXPORT Result match(QStringView pattern, QStringView str)
Category
Letter_Uppercase
Category category(char32_t ucs4)
Normal
void textChanged(const QString &text)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
Active
Base
void setColor(ColorGroup group, ColorRole role, const QColor &color)
bool startsWith(QChar c, Qt::CaseSensitivity cs) const const
QStringView left(qsizetype length) const const
QChar at(qsizetype n) const const
bool contains(QChar c, Qt::CaseSensitivity cs) const const
qsizetype length() const const
palette
void update()
visible
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.