KWidgetsAddons
kpasswordlineedit.h
132 * passwordLineEdit.setRevealPasswordAvailable(KAuthorized::authorize(QStringLiteral("lineedit_reveal_password")));
bool isRevealPasswordAvailable() const
Whether the visibility trailing action in the line edit is visible.
Definition kpasswordlineedit.cpp:180
KPassword::RevealMode revealPasswordMode() const
Return when the reveal password button is visible.
Definition kpasswordlineedit.cpp:192
bool isReadOnly() const
Return whether the line edit is read only.
Definition kpasswordlineedit.cpp:163
void setRevealPasswordMode(KPassword::RevealMode revealPasswordMode)
Set when the reveal password button will be visible.
Definition kpasswordlineedit.cpp:186
void setReadOnly(bool readOnly)
Set whether the line edit is read only.
Definition kpasswordlineedit.cpp:158
void setEchoMode(QLineEdit::EchoMode mode)
Change echo mode (QLineEdit::Password by default)
Definition kpasswordlineedit.cpp:148
bool isClearButtonEnabled() const
Inform if we show or not clear button.
Definition kpasswordlineedit.cpp:143
QAction * toggleEchoModeAction() const
Definition kpasswordlineedit.cpp:197
void echoModeChanged(QLineEdit::EchoMode echoMode)
When we click on visibility icon echo mode is switched between Normal echo mode and Password echo mod...
void setRevealPasswordAvailable(bool reveal)
Whether to show the visibility trailing action in the line edit.
Definition kpasswordlineedit.cpp:174
~KPasswordLineEdit() override
Destructs the lineedit password widget.
void setClearButtonEnabled(bool clear)
Show/hide clear button (false by default)
Definition kpasswordlineedit.cpp:138
KPasswordLineEdit(QWidget *parent=nullptr)
Constructs a lineedit password widget.
Definition kpasswordlineedit.cpp:95
EchoMode
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
QWidget(QWidget *parent, Qt::WindowFlags f)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:58 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:58 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.