Pages
API Documentation
On this page

TreeViewDecoration QML Type

The tree expander decorator for item views. More...

  • Import Statement: import org.kde.kirigamiaddons.treeview
  • Inherits: RowLayout

Detailed Description

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 recommended to use RoundedTreeDelegate directly instead of this component.

Property Documentation

decorationHighlightColor : color

This property holds the color of the decoration highlight.

[required] index : int

This property holds the index of the item.

Provided by the model/ListView.

[required] kDescendantExpandable : bool

This property holds whether the item is expandable.

Provided by the model/ListView.

[required] kDescendantExpanded : bool

This property holds whether the item is expanded.

Provided by the model/ListView.

[required] kDescendantHasSiblings : var

This property holds whether this item has siblings.

Provided by the model/ListView.

[required] kDescendantLevel : int

This property holds the descendant level of the item.

Provided by the model/ListView.

[required] model : KDescendantsProxyModel

This property holds the KDescendantsProxyModel the view is showing.

It needs to be assigned explicitly by the developer.

[required] parentDelegate : ItemDelegate

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

It needs to be assigned explicitly by the developer.

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.