org::kde::kirigami::templates::AbstractListItem

Properties | |
alias | _default |
QQC2 | Action |
color | activeBackgroundColor |
color | activeTextColor |
color | alternateBackgroundColor |
bool | alternatingBackground |
color | backgroundColor |
alias | containsMouse |
bool | sectionDelegate |
bool | separatorVisible |
bool | supportsMouseEvents |
color | textColor |
Detailed Description
An item delegate for the primitive ListView component.
- Since
- 2.2
It's intended to make all listviews look coherent.
Definition at line 21 of file controls/templates/AbstractListItem.qml.
Property Documentation
◆ _default
|
read |
- Remarks
- This is the default property
Definition at line 123 of file controls/templates/AbstractListItem.qml.
◆ activeBackgroundColor
|
read |
This property holds the color of the background when the item is pressed or selected.
It is advised to use the default value.
default: Kirigami.Theme.highlightColor
Definition at line 98 of file controls/templates/AbstractListItem.qml.
◆ activeTextColor
|
read |
This property holds the color of the text when the item is pressed or selected.
It is advised to use the default value.
default: Kirigami.Theme.highlightedTextColor
If custom text elements are inserted in an AbstractListItem, their color will have to be manually set with this property.
Definition at line 120 of file controls/templates/AbstractListItem.qml.
◆ alternateBackgroundColor
|
read |
This property holds the background color to be used when background alternating is enabled.
It is advised to use the default value.
default: Kirigami.Theme.alternateBackgroundColor
- Since
- org.kde.kirigami 2.7
Definition at line 89 of file controls/templates/AbstractListItem.qml.
◆ alternatingBackground
|
read |
This property sets whether instances of this list item will alternate between two colors, helping readability.
It is suggested to use this only when implementing a view with multiple columns.
default: false
- Since
- org.kde.kirigami 2.7
Definition at line 52 of file controls/templates/AbstractListItem.qml.
◆ backgroundColor
|
read |
This property holds list item's background color.
It is advised to use the default value.
default: "transparent"
Definition at line 78 of file controls/templates/AbstractListItem.qml.
◆ containsMouse
|
read |
This property specifies whether the cursor is currently hovering over the item.
On mobile touch devices, this will be true
only when pressed.
- See also
- QtQuick.Templates.ItemDelegate.hovered
- Deprecated:
- This will be removed in KF6; use the
hovered
property instead.
Definition at line 41 of file controls/templates/AbstractListItem.qml.
◆ sectionDelegate
|
read |
This property sets whether this item is a section delegate.
Setting this to true
will make the list item look like a "title" for items under it.
default: false
- See also
- kirigami::ListSectionHeader
Definition at line 62 of file controls/templates/AbstractListItem.qml.
◆ separatorVisible
|
read |
This property sets whether the separator is visible.
The separator is a line between this and the item under it.
default: false
Definition at line 70 of file controls/templates/AbstractListItem.qml.
◆ supportsMouseEvents
|
read |
This property sets whether the item should emit signals related to mouse interaction.
default: true
- Deprecated:
- This will be removed in KF6.
Definition at line 31 of file controls/templates/AbstractListItem.qml.
◆ textColor
|
read |
This property holds the color of the text in the item.
It is advised to use the default value.
default: Kirigami.Theme.textColor
If custom text elements are inserted in an AbstractListItem, their color will have to be manually set with this property.
Definition at line 109 of file controls/templates/AbstractListItem.qml.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:01:09 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.