KDE3Support
#include <k3passworddialog.h>

Public Types | |
enum | EchoModes { OneStar , ThreeStars , NoEcho } |
Public Slots | |
virtual void | insert (const QString &) |
Public Member Functions | |
K3PasswordEdit (EchoMode echoMode, QWidget *parent=0) | |
K3PasswordEdit (EchoModes echoMode, QWidget *parent=0) | |
K3PasswordEdit (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.
Definition at line 41 of file k3passworddialog.h.
Member Enumeration Documentation
◆ EchoModes
Enumerator | |
---|---|
OneStar | |
ThreeStars | |
NoEcho |
Definition at line 47 of file k3passworddialog.h.
Constructor & Destructor Documentation
◆ K3PasswordEdit() [1/3]
|
explicit |
Constructs a password input widget using the user's global "echo mode" setting.
Definition at line 102 of file k3passworddialog.cpp.
◆ K3PasswordEdit() [2/3]
|
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.
◆ K3PasswordEdit() [3/3]
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::~K3PasswordEdit | ( | ) |
Destructs the widget.
Definition at line 142 of file k3passworddialog.cpp.
Member Function Documentation
◆ erase()
void K3PasswordEdit::erase | ( | ) |
Erases the current password.
Definition at line 171 of file k3passworddialog.cpp.
◆ event()
|
protectedvirtual |
Definition at line 216 of file k3passworddialog.cpp.
◆ focusInEvent()
|
protectedvirtual |
Definition at line 178 of file k3passworddialog.cpp.
◆ insert
|
virtualslot |
Reimplementation.
Definition at line 154 of file k3passworddialog.cpp.
◆ keyPressEvent()
|
protectedvirtual |
Definition at line 188 of file k3passworddialog.cpp.
◆ maxPasswordLength()
int K3PasswordEdit::maxPasswordLength | ( | ) | const |
Returns the current maximum password length.
Definition at line 285 of file k3passworddialog.cpp.
◆ password()
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.
◆ setMaxPasswordLength()
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
◆ PassLen
|
static |
Definition at line 83 of file k3passworddialog.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.