kdeui
KPasswordEdit Class Reference
A safe password input widget. More...
#include <kpassdlg.h>
Public Types | |
enum | EchoModes { OneStar, ThreeStars, NoEcho } |
Public Slots | |
virtual void | insert (const QString &) |
Public Member Functions | |
void | erase () |
KPasswordEdit (QWidget *parent, const char *name, int echoMode) KDE_DEPRECATED | |
KPasswordEdit (EchoModes echoMode, QWidget *parent, const char *name) | |
KPasswordEdit (EchoMode echoMode, QWidget *parent, const char *name) | |
KPasswordEdit (QWidget *parent=0, const char *name=0) | |
int | maxPasswordLength () const |
const char * | password () const |
void | setMaxPasswordLength (int newLength) |
~KPasswordEdit () | |
Static Public Attributes | |
static const int | PassLen = 200 |
Protected Member Functions | |
virtual bool | event (QEvent *e) |
virtual void | focusInEvent (QFocusEvent *e) |
virtual void | keyPressEvent (QKeyEvent *) |
Detailed Description
A safe password input widget.The widget uses the user's global "echo mode" setting.
Definition at line 39 of file kpassdlg.h.
Member Enumeration Documentation
Constructor & Destructor Documentation
KPasswordEdit::KPasswordEdit | ( | QWidget * | parent = 0 , |
|
const char * | name = 0 | |||
) |
Constructs a password input widget using the user's global "echo mode" setting.
Definition at line 105 of file kpassdlg.cpp.
KPasswordEdit::KPasswordEdit | ( | EchoMode | echoMode, | |
QWidget * | parent, | |||
const char * | name | |||
) |
Constructs a password input widget using echoMode as "echo mode".
Note that echoMode is a QLineEdit::EchoMode.
- Since:
- 3.0
Definition at line 136 of file kpassdlg.cpp.
Constructs a password input widget using echoMode as "echo mode".
Note that echoMode is a KPasswordEdit::EchoModes.
- Since:
- 3.2
Definition at line 130 of file kpassdlg.cpp.
KPasswordEdit::KPasswordEdit | ( | QWidget * | parent, | |
const char * | name, | |||
int | echoMode | |||
) |
- Deprecated:
- , will be removed in KDE 4.0 Creates a password input widget using echoMode as "echo mode".
Definition at line 124 of file kpassdlg.cpp.
KPasswordEdit::~KPasswordEdit | ( | ) |
Member Function Documentation
void KPasswordEdit::erase | ( | ) |
bool KPasswordEdit::event | ( | QEvent * | e | ) | [protected, virtual] |
Definition at line 223 of file kpassdlg.cpp.
void KPasswordEdit::focusInEvent | ( | QFocusEvent * | e | ) | [protected, virtual] |
Definition at line 185 of file kpassdlg.cpp.
void KPasswordEdit::insert | ( | const QString & | txt | ) | [virtual, slot] |
void KPasswordEdit::keyPressEvent | ( | QKeyEvent * | e | ) | [protected, virtual] |
int KPasswordEdit::maxPasswordLength | ( | ) | const |
const char* KPasswordEdit::password | ( | ) | const [inline] |
Returns the password.
The memory is freed in the destructor so you should make a copy.
Definition at line 82 of file kpassdlg.h.
void KPasswordEdit::setMaxPasswordLength | ( | int | newLength | ) |
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.
- Parameters:
-
newLength,: The new maximum password length
- Since:
- 3.4
Definition at line 282 of file kpassdlg.cpp.
Member Data Documentation
const int KPasswordEdit::PassLen = 200 [static] |
Definition at line 89 of file kpassdlg.h.
The documentation for this class was generated from the following files: