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

Search for usage in LXR

org::kde::kirigami::templates::AbstractListItem Class Reference
Inheritance diagram for 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

alias org::kde::kirigami::templates::AbstractListItem::_default
Remarks
This is the default property

Definition at line 88 of file controls/templates/AbstractListItem.qml.

color org::kde::kirigami::templates::AbstractListItem::activeBackgroundColor

Color for the background of the item when pressed or selected It is advised to leave the default value (Theme.highlightColor)

Definition at line 85 of file controls/templates/AbstractListItem.qml.

color org::kde::kirigami::templates::AbstractListItem::activeTextColor

Color for the text in the item when pressed or selected It is advised to leave the default value (Theme.highlightedTextColor)

Note: if custom text elements are inserted in an AbstractListItem, their color property will have to be manually bound with this property

Definition at line 80 of file controls/templates/AbstractListItem.qml.

color org::kde::kirigami::templates::AbstractListItem::alternateBackgroundColor

The background color to use if alternatingBackground is true.

It is advised to leave the default.

Since
2.7

Definition at line 72 of file controls/templates/AbstractListItem.qml.

bool org::kde::kirigami::templates::AbstractListItem::alternatingBackground

If true the background of the list items will be alternating between two colors, helping readability with multiple column views.

Use it only when implementing a view which shows data visually in multiple columns @ since 2.7

Definition at line 43 of file controls/templates/AbstractListItem.qml.

color org::kde::kirigami::templates::AbstractListItem::backgroundColor

Color for the background of the item It is advised to leave the default value (Theme.viewBackgroundColor)

Definition at line 66 of file controls/templates/AbstractListItem.qml.

bool org::kde::kirigami::templates::AbstractListItem::containsMouse

True when the user hovers the mouse over the list item NOTE: on mobile touch devices this will be true only when pressed is also true.

Definition at line 35 of file controls/templates/AbstractListItem.qml.

bool org::kde::kirigami::templates::AbstractListItem::sectionDelegate

If true the item will be a delegate for a section, so will look like a "title" for the items under it.

Definition at line 48 of file controls/templates/AbstractListItem.qml.

bool org::kde::kirigami::templates::AbstractListItem::separatorVisible

True if the separator between items is visible default: true.

Definition at line 53 of file controls/templates/AbstractListItem.qml.

bool org::kde::kirigami::templates::AbstractListItem::supportsMouseEvents
Deprecated:
Holds if the item emits signals related to mouse interaction.

The default value is false.

Definition at line 28 of file controls/templates/AbstractListItem.qml.

color org::kde::kirigami::templates::AbstractListItem::textColor

Color for the text in the item It is advised to leave the default value (Theme.textColor)

Note: if custom text elements are inserted in an AbstractListItem, their color property will have to be manually bound with this property

Definition at line 61 of file controls/templates/AbstractListItem.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 Sun Oct 24 2021 22:39:11 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.