KWidgetsAddons
knewpassworddialog.h
39 * connect(dlg, &KNewPasswordDialog::newPassword, this, [this](const QString &pass) { setPassword(pass); });
66 Q_PROPERTY(KPassword::RevealMode revealPasswordMode READ revealPasswordMode WRITE setRevealPasswordMode)
92 * Sets the icon that appears next to the prompt in the dialog. The default icon represents a simple key.
98 * Returns the icon that appears next to the prompt in the dialog. The default icon represents a simple key.
205 * passwordDialog.setRevealPasswordAvailable(KAuthorized::authorize(QStringLiteral("lineedit_reveal_password")));
209 [[deprecated("Use setRevealPasswordMode instead.")]] void setRevealPasswordAvailable(bool reveal);
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?
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
QDialog(QWidget *parent, Qt::WindowFlags f)
virtual void accept()
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
QWidget(QWidget *parent, Qt::WindowFlags f)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:52:02 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:52:02 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.