Window for asking password. More...
#include <passworddialog.h>
Public Slots | |
| void | cancel () |
| void | ok () |
Public Member Functions | |
| PasswordDialog (QWidget *parent=0, QString title=QString::null) | |
| ~PasswordDialog () | |
Static Public Member Functions | |
| static QString | ask (QWidget *parent=0, const QString &title=QString::null) |
Private Attributes | |
| QLineEdit * | password_query |
| QString | password |
Window for asking password.
Simple widget for asking password
| gui::PasswordDialog::PasswordDialog | ( | QWidget * | parent = 0, |
|
| QString | title = QString::null | |||
| ) |
Default constructor of password dialog
| title | of dialog. If not specified, default will be used | |
| parent | parent widget of this dialog |
References APP_NAME, cancel(), ok(), and password_query.
| gui::PasswordDialog::~PasswordDialog | ( | ) |
default destructor
References debug::DBG_DBG, guiPrintDbg, and password.
| QString gui::PasswordDialog::ask | ( | QWidget * | parent = 0, |
|
| const QString & | title = QString::null | |||
| ) | [static] |
Invoke password dialog, asking user for password
| parent | Parent window of the dialog | |
| title | Optional title, if not specified, some default title like "enter password" would be used |
References password.
Referenced by gui::BaseGUI::checkItem().
| void gui::PasswordDialog::cancel | ( | ) | [slot] |
| void gui::PasswordDialog::ok | ( | ) | [slot] |
Called on pushing 'OK' button
References password, and password_query.
Referenced by PasswordDialog().
QString gui::PasswordDialog::password [private] |
Current password
Referenced by ask(), cancel(), ok(), and ~PasswordDialog().
QLineEdit* gui::PasswordDialog::password_query [private] |
editbox with password
Referenced by ok(), and PasswordDialog().