#include <kpassdlg.h>
Inherits TQLineEdit.
Public Types | |
enum | EchoModes { OneStar, ThreeStars, NoEcho } |
Public Slots | |
virtual void | insert (const TQString &) |
Public Member Functions | |
KPasswordEdit (TQWidget *parent=0, const char *name=0) | |
KPasswordEdit (EchoMode echoMode, TQWidget *parent, const char *name) | |
KPasswordEdit (EchoModes echoMode, TQWidget *parent, const char *name) | |
KPasswordEdit (TQWidget *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 (TQKeyEvent *) |
virtual void | focusInEvent (TQFocusEvent *e) |
virtual bool | event (TQEvent *e) |
Detailed Description
A safe password input widget.
The widget uses the user's global "echo mode" setting.
Definition at line 38 of file kpassdlg.h.
Constructor & Destructor Documentation
KPasswordEdit::KPasswordEdit | ( | TQWidget * | parent = 0 , |
const char * | name = 0 |
||
) |
Constructs a password input widget using the user's global "echo mode" setting.
Definition at line 81 of file kpassdlg.cpp.
KPasswordEdit::KPasswordEdit | ( | EchoMode | echoMode, |
TQWidget * | parent, | ||
const char * | name | ||
) |
Constructs a password input widget using echoMode as "echo mode".
Note that echoMode is a TQLineEdit::EchoMode.
- Since
- 3.0
Definition at line 110 of file kpassdlg.cpp.
KPasswordEdit::KPasswordEdit | ( | EchoModes | echoMode, |
TQWidget * | parent, | ||
const char * | name | ||
) |
Constructs a password input widget using echoMode as "echo mode".
Note that echoMode is a KPasswordEdit::EchoModes.
- Since
- 3.2
Definition at line 117 of file kpassdlg.cpp.
KPasswordEdit::KPasswordEdit | ( | TQWidget * | 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 103 of file kpassdlg.cpp.
KPasswordEdit::~KPasswordEdit | ( | ) |
Destructs the widget.
Definition at line 137 of file kpassdlg.cpp.
Member Function Documentation
void KPasswordEdit::erase | ( | ) |
Erases the current password.
Definition at line 149 of file kpassdlg.cpp.
|
virtualslot |
Reimplementation.
Definition at line 164 of file kpassdlg.cpp.
int KPasswordEdit::maxPasswordLength | ( | ) | const |
const char * KPasswordEdit::password | ( | ) | const |
Returns the password.
The memory is freed in the destructor so you should make a copy.
Definition at line 141 of file kpassdlg.cpp.
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.
- Parameters
-
newLength The new maximum password length
- Since
- 3.4
Definition at line 154 of file kpassdlg.cpp.
The documentation for this class was generated from the following files: