1#ifndef DIALOGS_ENTERPASSWORDDIALOG_H
2#define DIALOGS_ENTERPASSWORDDIALOG_H
13class EnterPasswordDialog;
49 void updateShowPassword();
57 QString m_instruction;
58 bool m_capslockPressed;
97inline void EnterPasswordDialog::abort()
100 done(QDialog::Rejected);
EnterPasswordDialog(QWidget *parent=nullptr)
Constructs a password dialog.
bool isCapslockPressed
Returns an indication whether the capslock key is pressed using platform specific functions.
bool isVerificationRequired
bool eventFilter(QObject *sender, QEvent *event) override
Internal method to notice when the capslock key is pressed by the user.
void setPromptForUserName(bool prompt)
Sets whethere the dialog prompts for a user name as well.
void setDescription(const QString &description=QString())
Sets the description.
void setVerificationRequired(bool value)
Sets whether a verification (password has to be entered twice) is required.
void setInstruction(const QString &value)
Sets the instruction text.
void setPasswordRequired(bool value)
Sets whether the user is force to enter a password.
bool event(QEvent *event) override
#define QT_UTILITIES_EXPORT
Marks the symbol to be exported by the qtutilities library.