org::kde::kirigami::SwipeListItem
org::kde::kirigami::SwipeListItem Class Reference
Inheritance diagram for org::kde::kirigami::SwipeListItem:

Additional Inherited Members | |
![]() | |
alias | _default |
bool | actionsVisible |
color | activeBackgroundColor |
color | activeTextColor |
color | alternateBackgroundColor |
bool | alternatingBackground |
bool | alwaysVisibleActions |
color | backgroundColor |
alias | containsMouse |
alias | overlayWidth |
list | QQC2 |
bool | sectionDelegate |
bool | separatorVisible |
alias | supportsMouseEvents |
color | textColor |
Detailed Description
An item delegate Intended to support extra actions obtainable by uncovering them by dragging away the item with the handle This acts as a container for normal list items.
Example usage:
ListView {
model: myModel
delegate: SwipeListItem {
QQC2.Label {
text: model.text
}
actions: [
Action {
icon.name: "document-decrypt"
onTriggered: print("Action 1 clicked")
},
Action {
icon.name: model.action2Icon
onTriggered: //do something
}
]
}
}
Definition at line 36 of file controls/SwipeListItem.qml.
The documentation for this class was generated from the following file:
An item delegate Intended to support extra actions obtainable by uncovering them by dragging away the...
Definition: styles/Material/SwipeListItem.qml:39
QAction * print(const QObject *recvr, const char *slot, QObject *parent)
list QQC2
This property holds actions of the list item.
Definition: controls/templates/SwipeListItem.qml:167
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Jun 9 2023 03:58:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Jun 9 2023 03:58:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.