KDEUI
#include <kstyle.h>
Public Types | |
enum | LayoutProp { TabContentsMargin, TabFocusMargin = TabContentsMargin + MarginInc, TabTextToIconSpace = TabFocusMargin + MarginInc, TabOverlap, BaseHeight, BaseOverlap, ScrollButtonWidth } |
enum | Primitive { EastText, WestText, NorthTab, EastTab, WestTab, SouthTab, BaseFrame, IndicatorTear } |
Detailed Description
Member Enumeration Documentation
Each tab is basically built hiearchically out of the following areas:
- Content area, one of the following layouts:
- Icon <- TextToIconSpace -> Text
- Icon
- Text
Bevel: LP_TabBar_TabContentsMargin
outside of the content area
- Focus indicator is placed
LP_TabBar_TabFocusMargin
inside the bevel
- Note
- The side tabs just have those rotated, bottom tabs have the margins reversed.
- See also
- setWidgetLayoutProp()
Enumerator | |
---|---|
TabContentsMargin |
(6) margin around the tab contents, used to size the tab |
TabFocusMargin |
(3) where the tab focus rect is placed, measured from the tab sides (?) |
TabTextToIconSpace |
(0 ?) space between icon and text if the tab contains both |
TabOverlap |
(0) Amount of pixels tabs should overlap. The paint rectangle will be extended to the left for all tabs which are not at the beginning (accordingly extended to the right in RightToLeft mode; extended to the top for East/West tabs). |
BaseHeight |
(2) the height of the tabBar's base, usually the frame width [sets QStyle::PM_TabBarBaseHeight]
|
BaseOverlap |
(2) the number of pixels the tabs overlap with the base (i.e. tabWidget frame) [sets QStyle::PM_TabBarBaseOverlap] |
ScrollButtonWidth |
(10) buttons which are shown when there's not enough space for tabs (A ToolButton is used for this) [sets QStyle::PM_TabBarScrollButtonWidth] |
Relevant elements:
Generic::Text
for the TabBar labelsGeneric::FocusIndicator
for focused tabsGeneric::Icon
for icons associated to tabsToolButton::Panel
paints the scroll button (when the tabs don't fit the tab bar)
Enumerator | |
---|---|
EastText |
Special rotated text for east tabs. |
WestText |
|
NorthTab |
|
EastTab | |
WestTab | |
SouthTab | |
BaseFrame |
[implements QStyle::PE_FrameTabBarBase] |
IndicatorTear |
painted in the left edge of a tabbar when the left tab is scrolled out [implements PE_IndicatorTabTear] |
The documentation for this struct was generated from the following file:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.