KDEUI
#include <kstyle.h>
Public Types | |
enum | LayoutProps { ContentsMargin, FocusMargin = ContentsMargin + MarginInc, MenuIndicatorSize, InlineMenuIndicatorSize = FocusMargin + MarginInc, InlineMenuIndicatorXOff, InlineMenuIndicatorYOff } |
enum | Primitive { Panel } |
Detailed Description
Describes widgets like QToolButton (usually inside a QToolBar).
The drawing of ToolButton's is much like that of PushButtons; however, in some cases the widget is configured to not have a separate arrow area, but to incorporate the area inside the button itself. To handle this mode, set InlineMenuIndicatorSize to the size of the arrow, and the InlineMenuIndicatorXOff, and InlineMenuIndicatorYOff to offset from the bottom-right corner to place that rectangle. If InlineMenuIndicatorSize isn't set, the arrow won't be drawn.
- See also
- WT_ToolButton
Member Enumeration Documentation
- See also
- setWidgetLayoutProp()
Relevant Generic elements:
Generic::ArrowDown
indicating an associated sub-menu
- Todo:
- Implement CE_ToolButtonLabel to have own Generic::Text, Generic::Icon, and LayoutProps PressedShiftHorizontal, PressedShiftVertical, TextToIconSpace, MenuIndicatorSize...
- See also
- drawKStylePrimitive()
Enumerator | |
---|---|
Panel |
the toolbutton panel [implements QStyle::PE_PanelButtonTool] |
The documentation for this struct was generated from the following file:
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.