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

◆ _default

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

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

◆ activeBackgroundColor

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

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.

◆ activeTextColor

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

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.

◆ alternateBackgroundColor

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

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.

◆ alternatingBackground

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

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.

◆ backgroundColor

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

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.

◆ containsMouse

bool AbstractListItem::containsMouse
read

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.

◆ sectionDelegate

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

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.

◆ separatorVisible

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

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

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

◆ supportsMouseEvents

bool org::kde::kirigami::templates::AbstractListItem::supportsMouseEvents
read
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.

◆ textColor

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

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-2022 The KDE developers.
Generated on Wed Jun 29 2022 04:03:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.