KPasswordEdit Class Reference
#include <kpassdlg.h>
Inheritance diagram for KPasswordEdit:

Detailed Description
A safe password input widget.
- Author:
- Geert Jansen <geertj@kde.org>
Definition at line 39 of file kpassdlg.h.
Public Types | |
enum | EchoModes { OneStar, ThreeStars, NoEcho } |
Public Slots | |
virtual void | insert (const QString &) |
Public Member Functions | |
KPasswordEdit (QWidget *parent=0, const char *name=0) | |
KPasswordEdit (EchoMode echoMode, QWidget *parent, const char *name) | |
KPasswordEdit (EchoModes echoMode, QWidget *parent, const char *name) | |
KPasswordEdit (QWidget *parent, const char *name, int echoMode) KDE_DEPRECATED | |
~KPasswordEdit () | |
const char * | password () const |
void | erase () |
void | setMaxPasswordLength (int newLength) |
int | maxPasswordLength () const |
Static Public Attributes | |
static const int | PassLen = 200 |
Protected Member Functions | |
virtual void | keyPressEvent (QKeyEvent *) |
virtual void | focusInEvent (QFocusEvent *e) |
virtual bool | event (QEvent *e) |
Constructor & Destructor Documentation
|
Constructs a password input widget using the user's global "echo mode" setting.
Definition at line 105 of file kpassdlg.cpp. |
|
Constructs a password input widget using echoMode as "echo mode". Note that echoMode is a QLineEdit::EchoMode.
Definition at line 135 of file kpassdlg.cpp. |
|
Constructs a password input widget using echoMode as "echo mode". Note that echoMode is a KPasswordEdit::EchoModes.
Definition at line 129 of file kpassdlg.cpp. |
|
Definition at line 123 of file kpassdlg.cpp. |
|
Destructs the widget.
Definition at line 153 of file kpassdlg.cpp. |
Member Function Documentation
|
Erases the current password.
Definition at line 177 of file kpassdlg.cpp. |
|
Reimplementation.
Reimplemented from QLineEdit. Definition at line 160 of file kpassdlg.cpp. |
|
Returns the current maximum password length.
Definition at line 294 of file kpassdlg.cpp. |
|
Returns the password. The memory is freed in the destructor so you should make a copy. Definition at line 82 of file kpassdlg.h. |
|
Set the current maximum password length. If a password longer than the limit specified is currently entered, it is truncated accordingly. The length is capped to lie between 0 and 199 inclusive.
Definition at line 281 of file kpassdlg.cpp. |
The documentation for this class was generated from the following files: