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

KDEUI

  • KStyle
  • Tree
Public Types | List of all members
KStyle::Tree Struct Reference
KStyle widget representation

#include <kstyle.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 1056 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 1067 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 1078 of file kstyle.h.


The documentation for this struct was generated from the following file:
  • kstyle.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal