KWidgetsAddons
knewpassworddialog.cpp
63 showMessageWidget(tr("Password must be at least %n character(s) long.", "@info", ui.pwdWidget->minimumPasswordLength()), KMessageWidget::Error);
81void KNewPasswordDialogPrivate::showMessageWidget(const QString &message, KMessageWidget::MessageType type)
void setPasswordStrengthWarningLevel(int warningLevel)
Set the password strength level below which a warning is given Value is in the range 0 to 99.
Definition knewpassworddialog.cpp:209
void setRevealPasswordAvailable(bool reveal)
Whether to show the visibility trailing action in the line edit.
Definition knewpassworddialog.cpp:237
void setBackgroundWarningColor(const QColor &color)
When the verification password does not match, the background color of the verification field is set ...
Definition knewpassworddialog.cpp:219
QColor backgroundWarningColor() const
The color used as warning for the verification password field's background.
Definition knewpassworddialog.cpp:224
void setIcon(const QIcon &icon)
Sets the icon that appears next to the prompt in the dialog.
Definition knewpassworddialog.cpp:112
void setReasonablePasswordLength(int reasonableLength)
Password length that is expected to be reasonably safe.
Definition knewpassworddialog.cpp:199
void setAllowEmptyPasswords(bool allowed)
Allow empty passwords? - Default: true.
Definition knewpassworddialog.cpp:167
void setMaximumPasswordLength(int maxLength)
Maximum acceptable password length.
Definition knewpassworddialog.cpp:187
virtual bool checkPassword(const QString &)
Virtual function that can be overridden to provide password checking in derived classes.
Definition knewpassworddialog.cpp:259
int minimumPasswordLength() const
Minimum acceptable password length.
Definition knewpassworddialog.cpp:182
int passwordStrengthWarningLevel() const
Password strength level below which a warning is given.
Definition knewpassworddialog.cpp:214
void setMinimumPasswordLength(int minLength)
Minimum acceptable password length.
Definition knewpassworddialog.cpp:177
KPassword::RevealMode revealPasswordMode
Definition knewpassworddialog.h:66
int maximumPasswordLength() const
Maximum acceptable password length.
Definition knewpassworddialog.cpp:192
bool isRevealPasswordAvailable() const
Whether the visibility trailing action in the line edit is visible.
Definition knewpassworddialog.cpp:242
QIcon icon() const
Returns the icon that appears next to the prompt in the dialog.
Definition knewpassworddialog.cpp:122
void newPassword(const QString &password)
The dialog has been accepted, and the new password is password.
void setRevealPasswordMode(KPassword::RevealMode revealPasswordMode)
Set when the reveal password button will be visible.
Definition knewpassworddialog.cpp:254
KNewPasswordDialog(QWidget *parent=nullptr)
Constructs a password dialog.
Definition knewpassworddialog.cpp:92
int reasonablePasswordLength() const
Password length that is expected to be reasonably safe.
Definition knewpassworddialog.cpp:204
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
virtual void accept()
QPixmap pixmap(QWindow *window, const QSize &size, Mode mode, State state) const const
QIcon fromTheme(const QString &name)
StandardButton
StandardButton warning(QWidget *parent, const QString &title, const QString &text, StandardButtons buttons, StandardButton defaultButton)
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QString tr(const char *sourceText, const char *disambiguation, int n)
void clear()
PM_MessageBoxIconSize
virtual int pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const const=0
void initFrom(const QWidget *widget)
QStyle * style() const const
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.