A subclass of QDialog which implements the UI for entering a password.
More...
|
| virtual void | accept () Q_DECL_OVERRIDE |
| | Invoked when OK is clicked. More...
|
| |
|
| virtual void | keyPressEvent (QKeyEvent *event) Q_DECL_OVERRIDE |
| | Invoked when a key is pressed. More...
|
| |
| virtual void | showEvent (QShowEvent *event) Q_DECL_OVERRIDE |
| | Invoked when the dialog is shown. More...
|
| |
A subclass of QDialog which implements the UI for entering a password.
◆ QtlPasswordDialog() [1/2]
| QtlPasswordDialog::QtlPasswordDialog |
( |
const QString & |
target, |
|
|
bool |
createPassword, |
|
|
bool |
emptyAllowed, |
|
|
QWidget * |
parent = 0 |
|
) |
| |
Constructor.
- Parameters
-
| [in] | target | The name of the target object for which a password is entered. |
| [in] | createPassword | If true, this creates a new passord with verification. |
| [in] | emptyAllowed | If true, an empty password is allowed. |
| [in] | parent | Optional parent widget. |
◆ QtlPasswordDialog() [2/2]
| QtlPasswordDialog::QtlPasswordDialog |
( |
| ) |
|
|
private |
◆ password()
| QString QtlPasswordDialog::password |
( |
| ) |
const |
|
inline |
Get the entered password.
- Returns
- The entered password.
◆ accept
| void QtlPasswordDialog::accept |
( |
| ) |
|
|
virtualslot |
Invoked when OK is clicked.
Reimplemented from QDialog.
◆ showEvent()
| void QtlPasswordDialog::showEvent |
( |
QShowEvent * |
event | ) |
|
|
protectedvirtual |
Invoked when the dialog is shown.
Reimplemented from superclass.
- Parameters
-
◆ keyPressEvent()
| void QtlPasswordDialog::keyPressEvent |
( |
QKeyEvent * |
event | ) |
|
|
protectedvirtual |
Invoked when a key is pressed.
Reimplemented from superclass.
- Parameters
-
◆ _emptyAllowed
| bool QtlPasswordDialog::_emptyAllowed |
|
private |
If true, an empty password is allowed.
◆ _editPassword
| QLineEdit* QtlPasswordDialog::_editPassword |
|
private |
◆ _editVerify
| QLineEdit* QtlPasswordDialog::_editVerify |
|
private |
Optional password verification edit box.
◆ _password
| QString QtlPasswordDialog::_password |
|
private |
The documentation for this class was generated from the following files: