KDE3Support
#include <k3passworddialog.h>
Public Types | |
enum | EchoModes { OneStar, ThreeStars, NoEcho } |
Public Slots | |
virtual void | insert (const QString &) |
Public Member Functions | |
K3PasswordEdit (QWidget *parent=0) | |
K3PasswordEdit (EchoMode echoMode, QWidget *parent=0) | |
K3PasswordEdit (EchoModes echoMode, QWidget *parent=0) | |
~K3PasswordEdit () | |
void | erase () |
int | maxPasswordLength () const |
const char * | password () const |
void | setMaxPasswordLength (int newLength) |
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
Enumerator | |
---|---|
OneStar | |
ThreeStars | |
NoEcho |
Definition at line 47 of file k3passworddialog.h.
Constructor & Destructor Documentation
|
explicit |
Constructs a password input widget using the user's global "echo mode" setting.
Definition at line 102 of file k3passworddialog.cpp.
|
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 | ( | ) |
Destructs the widget.
Definition at line 142 of file k3passworddialog.cpp.
Member Function Documentation
void K3PasswordEdit::erase | ( | ) |
Erases the current password.
Definition at line 171 of file k3passworddialog.cpp.
Definition at line 216 of file k3passworddialog.cpp.
|
protectedvirtual |
Definition at line 178 of file k3passworddialog.cpp.
|
virtualslot |
Reimplementation.
Definition at line 154 of file k3passworddialog.cpp.
|
protectedvirtual |
Definition at line 188 of file k3passworddialog.cpp.
int K3PasswordEdit::maxPasswordLength | ( | ) | const |
Returns the current maximum password length.
Definition at line 285 of file k3passworddialog.cpp.
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
|
static |
Definition at line 83 of file k3passworddialog.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.