8import org.kde.kirigami as Kirigami
29Kirigami.ActionTextField {
39 property bool showPassword: false
41 echoMode: root.showPassword ? TextInput.Normal : TextInput.Password
42 placeholderText: qsTr("Password")
44 rightActions: Kirigami.
Action {
45 text: root.showPassword ? qsTr(
"Hide Password") : qsTr(
"Show Password")
46 icon.
name: root.showPassword ?
"password-show-off" :
"password-show-on"
47 onTriggered: root.showPassword = !root.showPassword
50 Keys.onPressed:
event => {
51 if (
event.matches(StandardKey.Undo)) {
An item that represents an abstract Action.
AKONADI_CALENDAR_EXPORT KCalendarCore::Event::Ptr event(const Akonadi::Item &item)
QString name(GameStandardAction id)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:05:44 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.