KDEUI
KStyle::Tree Struct Reference
[KStyle widget representation]
#include <kstyle.h>
Detailed Description
Describes an expandable tree, e.g.in a QListView.
Definition at line 991 of file kstyle.h.
Public Types | |
enum | LayoutProp { MaxExpanderSize } |
enum | Primitive { ExpanderClosed, ExpanderOpen, HorizontalBranch, VerticalBranch } |
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()
- See also:
- drawKStylePrimitive()
- Enumerator:
-
ExpanderClosed A closed tree expander, usually drawn as '+'. KStyle has a default implementation (Windows-like look). ExpanderOpen An opened tree expander, usually drawn as '-' KStyle 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
The documentation for this struct was generated from the following file: