TreeViewDecoration

Search for usage in LXR

TreeViewDecoration Class Reference

Properties

color decorationHighlightColor
 
int index
 
bool kDescendantExpandable
 
bool kDescendantExpanded
 
var kDescendantHasSiblings
 
int kDescendantLevel
 
KDescendantsProxyModel model
 
T2ItemDelegate parentDelegate
 

Detailed Description

The tree expander decorator for item views.

It will have a "> v" expander button graphics, and will have indentation on the left depending on the level of the tree the item is in

It is recommanded to directly use RoundedTreeDelegate instead of this component.

Definition at line 9 of file styles/org.kde.desktop/TreeViewDecoration.qml.

Property Documentation

◆ decorationHighlightColor

color TreeViewDecoration::decorationHighlightColor
read

This property holds the color of the decoration highlight.

Definition at line 35 of file TreeViewDecoration.qml.

◆ index

int TreeViewDecoration::index
read

This property holds the index of the item.

Provided by the model/ListView

Definition at line 12 of file styles/org.kde.desktop/TreeViewDecoration.qml.

◆ kDescendantExpandable

bool TreeViewDecoration::kDescendantExpandable
read

This property holds whether the item is expandable.

Provided by the model/ListView

Definition at line 18 of file styles/org.kde.desktop/TreeViewDecoration.qml.

◆ kDescendantExpanded

bool TreeViewDecoration::kDescendantExpanded
read

This property holds whether the item is expanded.

Provided by the model/ListView

Definition at line 20 of file styles/org.kde.desktop/TreeViewDecoration.qml.

◆ kDescendantHasSiblings

var TreeViewDecoration::kDescendantHasSiblings
read

This property holds whether this item has siblings.

Provided by the model/ListView

Definition at line 16 of file styles/org.kde.desktop/TreeViewDecoration.qml.

◆ kDescendantLevel

int TreeViewDecoration::kDescendantLevel
read

This property holds the descendant level of the item.

Provided by the model/ListView

Definition at line 14 of file styles/org.kde.desktop/TreeViewDecoration.qml.

◆ model

KDescendantsProxyModel TreeViewDecoration::model
read

This property holds the KDescendantsProxyModel the view is showing.

It needs to be assigned explicitly by the developer.

Definition at line 24 of file styles/org.kde.desktop/TreeViewDecoration.qml.

◆ parentDelegate

T2ItemDelegate TreeViewDecoration::parentDelegate
read

This property holds the delegate there this decoration will live in.

It needs to be assigned explicitly by the developer.

Definition at line 22 of file styles/org.kde.desktop/TreeViewDecoration.qml.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.