The EnterPasswordDialog class provides a simple dialog to ask the user for a password.
More...
#include <enterpassworddialog.h>
|
bool | event (QEvent *event) override |
|
bool | eventFilter (QObject *sender, QEvent *event) override |
| Internal method to notice when the capslock key is pressed by the user. More...
|
|
The EnterPasswordDialog class provides a simple dialog to ask the user for a password.
Definition at line 16 of file enterpassworddialog.h.
◆ EnterPasswordDialog()
Dialogs::EnterPasswordDialog::EnterPasswordDialog |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
Constructs a password dialog.
- Parameters
-
parent | Specifies the parent widget. |
Definition at line 39 of file enterpassworddialog.cpp.
◆ ~EnterPasswordDialog()
Dialogs::EnterPasswordDialog::~EnterPasswordDialog |
( |
| ) |
|
|
override |
◆ description()
QString Dialogs::EnterPasswordDialog::description |
( |
| ) |
const |
◆ event()
bool Dialogs::EnterPasswordDialog::event |
( |
QEvent * |
event | ) |
|
|
overrideprotected |
◆ eventFilter()
bool Dialogs::EnterPasswordDialog::eventFilter |
( |
QObject * |
sender, |
|
|
QEvent * |
event |
|
) |
| |
|
overrideprotected |
Internal method to notice when the capslock key is pressed by the user.
Invocation of this method is done by installing the event filter in the constructor.
Definition at line 235 of file enterpassworddialog.cpp.
◆ instruction()
const QString& Dialogs::EnterPasswordDialog::instruction |
( |
| ) |
const |
◆ isCapslockPressed()
static bool Dialogs::EnterPasswordDialog::isCapslockPressed |
( |
| ) |
|
|
static |
◆ isPasswordRequired()
bool Dialogs::EnterPasswordDialog::isPasswordRequired |
( |
| ) |
const |
◆ isVerificationRequired()
bool Dialogs::EnterPasswordDialog::isVerificationRequired |
( |
| ) |
const |
◆ password()
const QString& Dialogs::EnterPasswordDialog::password |
( |
| ) |
const |
◆ promtForUserName()
bool Dialogs::EnterPasswordDialog::promtForUserName |
( |
| ) |
const |
◆ setDescription()
void Dialogs::EnterPasswordDialog::setDescription |
( |
const QString & |
description = QString() | ) |
|
◆ setInstruction()
void Dialogs::EnterPasswordDialog::setInstruction |
( |
const QString & |
value | ) |
|
◆ setPasswordRequired()
void Dialogs::EnterPasswordDialog::setPasswordRequired |
( |
bool |
value | ) |
|
◆ setPromptForUserName()
void Dialogs::EnterPasswordDialog::setPromptForUserName |
( |
bool |
prompt | ) |
|
Sets whethere the dialog prompts for a user name as well.
- See also
- promptForUserName()
Definition at line 121 of file enterpassworddialog.cpp.
◆ setVerificationRequired()
void Dialogs::EnterPasswordDialog::setVerificationRequired |
( |
bool |
value | ) |
|
◆ userName()
const QString& Dialogs::EnterPasswordDialog::userName |
( |
| ) |
const |
◆ description
QString Dialogs::EnterPasswordDialog::description |
|
readwrite |
◆ instruction
const QString & Dialogs::EnterPasswordDialog::instruction |
|
inlinereadwrite |
Returns the instruction text.
The instruction text is displayed at the top of the dialog. If the instruction text is empty the default text "Enter the new password" or "Enter the password" (depending on whether the verification is requried or not) displayed.
- See also
- EnterPasswordDialog::setInstruction()
Definition at line 24 of file enterpassworddialog.h.
◆ isCapslockPressed
bool Dialogs::EnterPasswordDialog::isCapslockPressed |
|
read |
Returns an indication whether the capslock key is pressed using platform specific functions.
Definition at line 25 of file enterpassworddialog.h.
◆ isPasswordRequired
bool Dialogs::EnterPasswordDialog::isPasswordRequired |
|
readwrite |
◆ isVerificationRequired
bool Dialogs::EnterPasswordDialog::isVerificationRequired |
|
readwrite |
◆ password
const QString & Dialogs::EnterPasswordDialog::password |
|
inlineread |
◆ promtForUserName
bool Dialogs::EnterPasswordDialog::promtForUserName |
|
readwrite |
◆ userName
const QString & Dialogs::EnterPasswordDialog::userName |
|
inlineread |
The documentation for this class was generated from the following files: