SwipeListItem
SwipeListItem Class Reference
Inheritance diagram for SwipeListItem:

Additional Inherited Members | |
![]() | |
childAt (x, real y) | |
bool | contains (point) |
forceActiveFocus () | |
forceActiveFocus (reason) | |
bool | grabToImage (callback, targetSize) |
object | mapFromGlobal (x, real y) |
object | mapFromItem (item, point p) |
object | mapFromItem (item, real x, real y) |
object | mapFromItem (item, real x, real y, real width, real height) |
object | mapFromItem (item, rect r) |
object | mapToGlobal (x, real y) |
object | mapToItem (item, point p) |
object | mapToItem (item, real x, real y) |
object | mapToItem (item, real x, real y, real width, real height) |
object | mapToItem (item, rect r) |
nextItemInFocusChain (forward) | |
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.
Any subclass of AbstractListItem can be assigned as the contentItem property.
ListView {
model: myModel
delegate: SwipeListItem {
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 39 of file styles/Material/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
const QList< QKeySequence > & print()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 6 2023 04:13:18 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 6 2023 04:13:18 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.