Search for usage in LXR

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

Additional Inherited Members

- Properties inherited from org::kde::kirigami::templates::SwipeListItem
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 that shows actions on the right side, which are, on mobile mode, obtainable by dragging away the item with the handle.

If the app is not in mobile mode, the actions are always shown to the user.

Example usage:

ListView {
model: myModel
delegate: SwipeListItem {
QQC2.Label {
text: model.text
actions: [ "document-decrypt"
onTriggered: print("Action 1 clicked")
}, model.action2Icon
onTriggered: //do something
See also
KDE Human Interface Guidelines on List Views and List Items

Definition at line 37 of file controls/SwipeListItem.qml.

The documentation for this class was generated from the following file:
list QQC2
This property holds actions of the list item.
const QList< QKeySequence > & print()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Nov 28 2023 04:08:26 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.