org::kde::kirigami::SwipeListItem

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
 
list Controls
 
bool sectionDelegate
 
bool separatorVisible
 
alias supportsMouseEvents
 
color textColor
 
- Public Member Functions inherited from QtQuick.Item
 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, rect r)
 
object mapFromItem (item, real x, real y)
 
object mapFromItem (item, real x, real y, real width, real height)
 
object mapToGlobal (x, real y)
 
object mapToItem (item, rect r)
 
object mapToItem (item, real x, real y)
 
object mapToItem (item, point p)
 
object mapToItem (item, real x, real y, real width, real height)
 
 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.

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
}
]
}
}

Any subclass of AbstractListItem can be assigned as the contentItem property.

ListView {
model: myModel
delegate: SwipeListItem {
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 35 of file controls/SwipeListItem.qml.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat May 15 2021 22:38:14 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.