#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) TDE_DEPRECATED | |
~KPasswordEdit () | |
TQString | 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() [1/4]
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 80 of file kpassdlg.cpp.
◆ KPasswordEdit() [2/4]
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 109 of file kpassdlg.cpp.
◆ KPasswordEdit() [3/4]
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 116 of file kpassdlg.cpp.
◆ KPasswordEdit() [4/4]
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 102 of file kpassdlg.cpp.
◆ ~KPasswordEdit()
KPasswordEdit::~KPasswordEdit | ( | ) |
Destructs the widget.
Definition at line 136 of file kpassdlg.cpp.
Member Function Documentation
◆ erase()
void KPasswordEdit::erase | ( | ) |
Erases the current password.
Definition at line 144 of file kpassdlg.cpp.
◆ insert
|
virtualslot |
Reimplementation.
Definition at line 159 of file kpassdlg.cpp.
◆ maxPasswordLength()
int KPasswordEdit::maxPasswordLength | ( | ) | const |
◆ password()
TQString KPasswordEdit::password | ( | ) | const |
Returns the password.
Definition at line 140 of file kpassdlg.cpp.
◆ setMaxPasswordLength()
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 149 of file kpassdlg.cpp.
The documentation for this class was generated from the following files: