• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDEUI

KStyle::Tree

KStyle::Tree Struct Reference
[KStyle widget representation]

Describes an expandable tree, e.g. More...

#include <kstyle.h>

List of all members.


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 1055 of file kstyle.h.


Member Enumeration Documentation

enum KStyle::Tree::LayoutProp

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 1066 of file kstyle.h.

enum KStyle::Tree::Primitive

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

Definition at line 1077 of file kstyle.h.


The documentation for this struct was generated from the following file:
  • kstyle.h

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal