KDEUI
kstyle.h
Go to the documentation of this file.
75// - Remi Villatel: extend QStyle enums for KColorButton, KColorCombo, KKeyButton, split PE_HeaderSection into KPopupTitle, PopupMenuTitle, TaskContainer)
77// - RV: KMulitTabBarTab ... does it need support from KStyle (instead of manual button rotation etc.)? Or is it dumped already?
79// - RV: fixed colors (e.g. Konqueror, KToolbarButton label text ->KPE_ToolbarButton?): To prevent hacks like "preventing any PaletteChange()"... mor related to KDE4 color schemes... I guess
81// - e.g. drawFancyPE() in kdeui for KDE widgets: check "qobject_cast<KStyle*>(style())", or fallback drawing...
83// TODO: maybe the arrow in CE_PushButtonLabel should be painted in CE_PushButtonBevel like QCommonStyle
353// /// whether the button is hovered, this doesn't work at the moment (not even in any Qt style)...
430 };
451 };
587 };
765 };
1087 };
1187 };
1223 };
1411 };
1568 QSize expandDim(const QSize& orig, WidgetType widget, int baseMarginMetric, const QStyleOption* opt, const QWidget* w, bool rotated = false) const;
1572 QRect insideMargin(const QRect &orig, WidgetType widget, int baseMarginMetric, const QStyleOption* opt, const QWidget* w) const;
1594 void drawControl (ControlElement elem, const QStyleOption* opt, QPainter* p, const QWidget* w) const;
1595 void drawPrimitive (PrimitiveElement elem, const QStyleOption* opt, QPainter* p, const QWidget* w) const;
Template class which helps implementing the widget style plugin interface.
Definition kstyle.h:1657
A representation for colors for use as a widget layout property.
Definition kstyle.h:192
WidgetType
This enum is used to represent KStyle's concept of a widget, and to associate drawing requests and me...
Definition kstyle.h:402
static T extractOption(Option *option)
The extractOption method casts the passed in option object, and returns it, if available,...
Definition kstyle.h:1684
MarginOffsets
These constants describe how to access various fields of a margin property.
Definition kstyle.h:441
@ BoxTextSpace
(6) space to leave between checkbox and text (and icon between them in case there is one)
Definition kstyle.h:582
@ TitleMargin
(2) Margin around title contents: Note that the symmetric margin (MainMargin) is used to size the tit...
Definition kstyle.h:658
@ TitleTextColor
(ColorMode(QPalette::HighlightedText)) color mode of the title text
Definition kstyle.h:657
Option for drawing double scrollbar buttons, indicating whether a button should be drawn active or no...
Definition kstyle.h:313
ActiveButton activeButton
Whether any of the two buttons is active; and if yes, which one.
Definition kstyle.h:330
@ DefaultFrameWidth
The FrameWidth used by LineEdit, etc..., default is 2 [sets QStyle::PM_DefaultFrameWidth].
Definition kstyle.h:467
@ DefaultLayoutSpacing
The spacing used by layouts, unless the style implements layoutSpacingImplementation(),...
Definition kstyle.h:468
Option for drawing icons: represents whether the icon should be active or not.
Definition kstyle.h:298
@ ActiveTextColor
(ColorMode(QPalette::HighlightedText)) color for active text and arrow
Definition kstyle.h:850
@ DisabledTextColor
(ColorMode(QPalette::Text)) color for inactive + disabled text and arrow
Definition kstyle.h:852
@ ArrowSpace
(3) space between the text column and arrow column (indicating sub menus)
Definition kstyle.h:846
@ CheckIcon
When CheckAlongsideIcon is disabled and item is checked: checkmark Indicator painted below the icon.
Definition kstyle.h:870
@ FrameWidth
(1) The width of the frame, note that this does not affect the layout.
Definition kstyle.h:788
Intermediatary base that helps implement subtypes of Option that properly handle defaults.
Definition kstyle.h:255
@ Precision
(1) The indicator size will always be a multiple of this (modulo busy indicator size clamping)....
Definition kstyle.h:696
@ SideTextSpace
(3) Extra space besides that needed for text to allocate to side indicator (on both sides).
Definition kstyle.h:695
@ GrooveMargin
(2) Margin to allocate for the groove. Content area will be inside of it.
Definition kstyle.h:693
@ PressedShiftVertical
(2) vertical contents shift for pressed buttons [sets QStyle::PM_ButtonShiftVertical]
Definition kstyle.h:517
@ MenuIndicatorSize
(8) Space inside the content area, which is allocated to the down arrow if there is a popup menu [set...
Definition kstyle.h:518
@ GrooveAreaHorRight
scrollbar groove area, horizontal. Flags: State_Sunken for pressed state
Definition kstyle.h:923
@ GrooveAreaVertBottom
scrollbar groove area, vertical. An interesting flag is State_Sunken for pressed state
Definition kstyle.h:922
@ SliderVert
scrollbar slider, vertical. Flags: State_On&&State_Sunken for pressed state
Definition kstyle.h:926
@ GrooveAreaVertTop
scrollbar groove area, vertical. An interesting flag is State_Sunken for pressed state
Definition kstyle.h:924
@ GrooveAreaHorLeft
scrollbar groove area, horizontal. Flags: State_Sunken for pressed state
Definition kstyle.h:925
LayoutProp
Each tab is basically built hiearchically out of the following areas:
Definition kstyle.h:952
@ BaseOverlap
(2) the number of pixels the tabs overlap with the base (i.e. tabWidget frame) [sets QStyle::PM_TabBa...
Definition kstyle.h:965
@ BaseHeight
(2) the height of the tabBar's base, usually the frame width [sets QStyle::PM_TabBarBaseHeight]
Definition kstyle.h:964
Option for drawing WT_Window titlebar buttons, indicating whether the button is pressed,...
Definition kstyle.h:350
Primitive
[the Handles implement QStyle::PE_IndicatorToolBarHandle] [the Panels implement QStyle::CE_ToolBar]
Definition kstyle.h:1339
@ HandleExtent
(6) the width(hor)/height(vert) of a ToolBar handle [sets QStyle::PM_ToolBarHandleExtent]
Definition kstyle.h:1323
@ ExtensionExtent
(10) the width/height of a ToolBar extender, when there is not enough room for toolbar buttons [sets ...
Definition kstyle.h:1325
@ SeparatorExtent
(6) the width/height of a ToolBar separator [sets QStyle::PM_ToolBarSeparatorExtent]
Definition kstyle.h:1324
Describes widgets like QToolButton (usually inside a QToolBar).
Definition kstyle.h:1389
@ ExpanderOpen
An opened tree expander, usually drawn as '-' KStyle has a default implementation.
Definition kstyle.h:1081
@ ExpanderClosed
A closed tree expander, usually drawn as '+'. KStyle has a default implementation (Windows-like look)...
Definition kstyle.h:1080
LayoutProp
For trees, all the control we provide here is to provide a cap on the size of the expander widget,...
Definition kstyle.h:1068
@ TitlePanel
whole titlebar panel/background, by KStyle default it's filled with plain highlight color
Definition kstyle.h:1469
@ TitleTextColor
(ColorMode(QPalette::HighlightedText)) color mode of the titlebar text
Definition kstyle.h:1445
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.