QtlMovie 1.12 (A specialized FFmpeg front-end)
QtlPasswordDialog Class Reference

A subclass of QDialog which implements the UI for entering a password. More...

Inheritance diagram for QtlPasswordDialog:

Public Slots

virtual void accept () Q_DECL_OVERRIDE
 Invoked when OK is clicked. More...
 

Public Member Functions

 QtlPasswordDialog (const QString &target, bool createPassword, bool emptyAllowed, QWidget *parent=0)
 Constructor. More...
 
QString password () const
 Get the entered password. More...
 

Protected Member Functions

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...
 

Private Member Functions

 QtlPasswordDialog () Q_DECL_EQ_DELETE
 

Private Attributes

QLineEdit * _editPassword
 Edit box for password. More...
 
QLineEdit * _editVerify
 Optional password verification edit box. More...
 
bool _emptyAllowed
 If true, an empty password is allowed. More...
 
QString _password
 The entered password. More...
 

Detailed Description

A subclass of QDialog which implements the UI for entering a password.

Constructor & Destructor Documentation

◆ QtlPasswordDialog() [1/2]

QtlPasswordDialog::QtlPasswordDialog ( const QString &  target,
bool  createPassword,
bool  emptyAllowed,
QWidget *  parent = 0 
)

Constructor.

Parameters
[in]targetThe name of the target object for which a password is entered.
[in]createPasswordIf true, this creates a new passord with verification.
[in]emptyAllowedIf true, an empty password is allowed.
[in]parentOptional parent widget.

◆ QtlPasswordDialog() [2/2]

QtlPasswordDialog::QtlPasswordDialog ( )
private

Member Function Documentation

◆ 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
[in]eventThe show event.

◆ keyPressEvent()

void QtlPasswordDialog::keyPressEvent ( QKeyEvent *  event)
protectedvirtual

Invoked when a key is pressed.

Reimplemented from superclass.

Parameters
[in]eventThe key event.

Member Data Documentation

◆ _emptyAllowed

bool QtlPasswordDialog::_emptyAllowed
private

If true, an empty password is allowed.

◆ _editPassword

QLineEdit* QtlPasswordDialog::_editPassword
private

Edit box for password.

◆ _editVerify

QLineEdit* QtlPasswordDialog::_editVerify
private

Optional password verification edit box.

◆ _password

QString QtlPasswordDialog::_password
private

The entered password.


The documentation for this class was generated from the following files: