KDELibs4Support

#include <k4style.h>

Public Types

enum  LayoutProp { MaxExpanderSize }
 
enum  Primitive { ExpanderClosed, ExpanderOpen, HorizontalBranch, VerticalBranch }
 

Detailed Description

Describes an expandable tree, e.g.

in a QListView.

Definition at line 994 of file k4style.h.

Member Enumeration Documentation

For trees, all the control we provide here is to provide a cap on the size of the expander widget, which is always square.

There are 4 primitives to implement: open and closed expander, and horizontal and vertical lines. If you're using dots, it's suggested you use global brush alignment to keep it all nicely aligned.

See also
setWidgetLayoutProp()
Enumerator
MaxExpanderSize 

(9)

Note
If you set MaxExpanderSize to a value less than 9, designer will look funny. The value should also be odd, or value - 1 will be used.

Definition at line 1004 of file k4style.h.

See also
drawKStylePrimitive()
Enumerator
ExpanderClosed 

A closed tree expander, usually drawn as '+'. K4Style has a default implementation (Windows-like look).

ExpanderOpen 

An opened tree expander, usually drawn as '-' K4Style has a default implementation.

HorizontalBranch 

A horizontal tree line.

Note
If you're using dots, it's suggested you use global brush alignment to keep it all nicely aligned.
VerticalBranch 
See also
HorizontalBranch

Definition at line 1014 of file k4style.h.


The documentation for this struct 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:58:30 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.