KDELibs4Support

#include <k4style.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

Describes a tab bar.

See also
WT_TabBar

Definition at line 883 of file k4style.h.

Member Enumeration Documentation

Each tab is basically built hiearchically out of the following areas:

  1. Content area, one of the following layouts:

  • Icon <- TextToIconSpace -> Text
  • Icon
  • Text

Bevel: LP_TabBar_TabContentsMargin outside of the content area

  1. 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]

Todo:
is this used for things like I intended TabWidget::ContentsMargin for?
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]

Definition at line 897 of file k4style.h.

Relevant elements:

Enumerator
EastText 

Special rotated text for east tabs.

WestText 
See also
EastText
NorthTab 
Todo:
say something about triangular shape etc.
BaseFrame 

[implements QStyle::PE_FrameTabBarBase]

IndicatorTear 

painted in the left edge of a tabbar when the left tab is scrolled out [implements PE_IndicatorTabTear]

Todo:
K4Style default implementation...?

Definition at line 921 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 Sat Jul 11 2020 22:58:06 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.