org::kde::kirigami::BasicListItem Class Reference
Inheritance diagram for org::kde::kirigami::BasicListItem:


alias _basicDefault
bool bold
var icon
alias iconColor
alias iconSize
alias label
alias reserveSpaceForIcon
alias reserveSpaceForLabel
alias subtitle

Additional Inherited Members

- 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 for the primitive ListView component.

It's intended to make all listviews look coherent. It has a default icon and a label

Definition at line 18 of file BasicListItem.qml.

Property Documentation

alias org::kde::kirigami::BasicListItem::_basicDefault
This is the default property

Definition at line 76 of file BasicListItem.qml.

bool org::kde::kirigami::BasicListItem::bold

bold: bool Control whether the text (in both primary text and subtitle) should be rendered as bold

org.kde.kirigami 2.13

Definition at line 38 of file BasicListItem.qml.

var org::kde::kirigami::BasicListItem::icon

icon: var A single icon that will be displayed in the list item.

The icon can be a grouped property with name,size,color etc, as QtQuickControls2 icons are defined. The icon can also be either a QIcon, a string name of a fdo compatible name, or any url accepted by the Image element.

Definition at line 46 of file BasicListItem.qml.

alias org::kde::kirigami::BasicListItem::iconColor

iconColor: color The color the icon should be colorized to.

By default it will be the text color. If the icon shouldn't be colorized in any way, set it to "transparent"


Definition at line 60 of file BasicListItem.qml.

alias org::kde::kirigami::BasicListItem::iconSize

iconSize: int The preferred size for the icon


Definition at line 52 of file BasicListItem.qml.

alias org::kde::kirigami::BasicListItem::label

string: bool A single text label the list item will contain

Definition at line 24 of file BasicListItem.qml.

alias org::kde::kirigami::BasicListItem::reserveSpaceForIcon

reserveSpaceForIcon: bool If true, even when there is no icon the space will be reserved for it It's useful in layouts where only some entries have an icon, having the text all horizontally aligned

Definition at line 67 of file BasicListItem.qml.

alias org::kde::kirigami::BasicListItem::reserveSpaceForLabel

reserveSpaceForLabel: bool If false, the label will not try to be as wide as possible It's useful in layouts containing entries without text

Definition at line 73 of file BasicListItem.qml.

alias org::kde::kirigami::BasicListItem::subtitle

A subtitle that goes below the main label Optional; if not defined, the list item will only have a main label.

org.kde.kirigami 2.12

Definition at line 31 of file BasicListItem.qml.

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

KDE's Doxygen guidelines are available online.