org::kde::plasma::components::ListItem

org::kde::plasma::components::ListItem Class Reference
Inheritance diagram for org::kde::plasma::components::ListItem:

Properties

bool checked
 
alias containsMouse
 
alias content
 
alias enabled
 
bool sectionDelegate
 
bool separatorVisible
 

Signals

void clicked ()
 
void pressAndHold ()
 

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.

Since
2.0

It's intended to make all listviews look coherent.

Definition at line 17 of file plasmacomponents/qml/ListItem.qml.

Property Documentation

bool org::kde::plasma::components::ListItem::checked

If true makes the list item look as checked or pressed.

It has to be set from the code, it won't change by itself.

Definition at line 47 of file plasmacomponents/qml/ListItem.qml.

alias org::kde::plasma::components::ListItem::containsMouse

True if the list item contains mouse.

Definition at line 56 of file plasmacomponents/qml/ListItem.qml.

alias org::kde::plasma::components::ListItem::content
Remarks
This is the default property

Definition at line 21 of file plasmacomponents/qml/ListItem.qml.

alias org::kde::plasma::components::ListItem::enabled

type: bool True if the item emits signals related to mouse interaction.

The default value is false.

Definition at line 27 of file plasmacomponents/qml/ListItem.qml.

bool org::kde::plasma::components::ListItem::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 52 of file plasmacomponents/qml/ListItem.qml.

bool org::kde::plasma::components::ListItem::separatorVisible

type: bool True if the separator between items is visible default: true

Definition at line 62 of file plasmacomponents/qml/ListItem.qml.

Member Function Documentation

void org::kde::plasma::components::ListItem::clicked ( )
signal

This signal is emitted when there is a click.

This is disabled by default, set enabled to true to use it.

See also
enabled
void org::kde::plasma::components::ListItem::pressAndHold ( )
signal

The user pressed the item with the mouse and didn't release it for a certain amount of time.

This is disabled by default, set enabled to true to use it.

See also
enabled

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 Thu Sep 17 2020 22:41:14 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.