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()
QtUtilities::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()
QtUtilities::EnterPasswordDialog::~EnterPasswordDialog |
( |
| ) |
|
|
override |
◆ description()
QString QtUtilities::EnterPasswordDialog::description |
( |
| ) |
const |
◆ event()
bool QtUtilities::EnterPasswordDialog::event |
( |
QEvent * |
event | ) |
|
|
overrideprotected |
◆ eventFilter()
bool QtUtilities::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& QtUtilities::EnterPasswordDialog::instruction |
( |
| ) |
const |
◆ isCapslockPressed()
static bool QtUtilities::EnterPasswordDialog::isCapslockPressed |
( |
| ) |
|
|
static |
◆ isPasswordRequired()
bool QtUtilities::EnterPasswordDialog::isPasswordRequired |
( |
| ) |
const |
◆ isVerificationRequired()
bool QtUtilities::EnterPasswordDialog::isVerificationRequired |
( |
| ) |
const |
◆ password()
const QString& QtUtilities::EnterPasswordDialog::password |
( |
| ) |
const |
◆ promtForUserName()
bool QtUtilities::EnterPasswordDialog::promtForUserName |
( |
| ) |
const |
◆ setDescription()
void QtUtilities::EnterPasswordDialog::setDescription |
( |
const QString & |
description = QString() | ) |
|
◆ setInstruction()
void QtUtilities::EnterPasswordDialog::setInstruction |
( |
const QString & |
value | ) |
|
◆ setPasswordRequired()
void QtUtilities::EnterPasswordDialog::setPasswordRequired |
( |
bool |
value | ) |
|
◆ setPromptForUserName()
void QtUtilities::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 QtUtilities::EnterPasswordDialog::setVerificationRequired |
( |
bool |
value | ) |
|
◆ userName()
const QString& QtUtilities::EnterPasswordDialog::userName |
( |
| ) |
const |
◆ description
QString QtUtilities::EnterPasswordDialog::description |
|
readwrite |
◆ instruction
const QString & QtUtilities::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 QtUtilities::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 QtUtilities::EnterPasswordDialog::isPasswordRequired |
|
readwrite |
◆ isVerificationRequired
bool QtUtilities::EnterPasswordDialog::isVerificationRequired |
|
readwrite |
◆ password
const QString & QtUtilities::EnterPasswordDialog::password |
|
inlineread |
◆ promtForUserName
bool QtUtilities::EnterPasswordDialog::promtForUserName |
|
readwrite |
◆ userName
const QString & QtUtilities::EnterPasswordDialog::userName |
|
inlineread |
The documentation for this class was generated from the following files: