KDE3Support
K3PasswordEdit Class Reference
A safe password input widget. More...
#include <k3passworddialog.h>

Public Types | |
enum | EchoModes { OneStar, ThreeStars, NoEcho } |
Public Slots | |
virtual void | insert (const QString &) |
Public Member Functions | |
void | erase () |
K3PasswordEdit (EchoModes echoMode, QWidget *parent=0) | |
K3PasswordEdit (EchoMode echoMode, QWidget *parent=0) | |
K3PasswordEdit (QWidget *parent=0) | |
int | maxPasswordLength () const |
const char * | password () const |
void | setMaxPasswordLength (int newLength) |
~K3PasswordEdit () | |
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.
- Deprecated:
- use KLineEdit with KLineEdit::setPasswordMode(true)
Definition at line 41 of file k3passworddialog.h.
Member Enumeration Documentation
Constructor & Destructor Documentation
K3PasswordEdit::K3PasswordEdit | ( | QWidget * | parent = 0 |
) | [explicit] |
Constructs a password input widget using the user's global "echo mode" setting.
Definition at line 102 of file k3passworddialog.cpp.
K3PasswordEdit::K3PasswordEdit | ( | EchoMode | echoMode, | |
QWidget * | parent = 0 | |||
) | [explicit] |
Constructs a password input widget using echoMode as "echo mode".
Note that echoMode is a QLineEdit::EchoMode.
Definition at line 124 of file k3passworddialog.cpp.
Constructs a password input widget using echoMode as "echo mode".
Note that echoMode is a K3PasswordEdit::EchoModes.
Definition at line 118 of file k3passworddialog.cpp.
K3PasswordEdit::~K3PasswordEdit | ( | ) |
Member Function Documentation
void K3PasswordEdit::erase | ( | ) |
bool K3PasswordEdit::event | ( | QEvent * | e | ) | [protected, virtual] |
Definition at line 216 of file k3passworddialog.cpp.
void K3PasswordEdit::focusInEvent | ( | QFocusEvent * | e | ) | [protected, virtual] |
Definition at line 178 of file k3passworddialog.cpp.
void K3PasswordEdit::insert | ( | const QString & | txt | ) | [virtual, slot] |
Reimplementation.
Reimplemented from QLineEdit.
Definition at line 154 of file k3passworddialog.cpp.
void K3PasswordEdit::keyPressEvent | ( | QKeyEvent * | e | ) | [protected, virtual] |
int K3PasswordEdit::maxPasswordLength | ( | ) | const |
const char * K3PasswordEdit::password | ( | ) | const |
Returns the password.
The memory is freed in the destructor so you should make a copy.
Definition at line 149 of file k3passworddialog.cpp.
void K3PasswordEdit::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
Definition at line 272 of file k3passworddialog.cpp.
Member Data Documentation
const int K3PasswordEdit::PassLen = 200 [static] |
Definition at line 83 of file k3passworddialog.h.
The documentation for this class was generated from the following files: