KDEUI
#include <kstyle.h>
Public Types | |
| enum | LayoutProp { FrameWidth, ButtonWidth, ButtonMargin, ButtonSpacing = ButtonMargin + MarginInc, SymmetricButtons, SupportFrameless, ContentsMargin } |
| enum | Primitive { EditField, UpButton, DownButton, ButtonArea, PlusSymbol, MinusSymbol } |
Detailed Description
Member Enumeration Documentation
- Note
- The description applies to LTR (left to right) mode.
FrameWidthandButtonWidthare used to size the contents area. To the EditField,FrameWidthis added at the left, top, bottom whileButtonWidthis added at the right.- The
ButtonMarginis measured from the right side of the EditField and the outside. Inside it, the up and down buttons are aligned with spacingButtonSpacing. - To make sure that both buttons are always of the same height, enable
SymmetricButtons.
- See also
- setWidgetLayoutProp()
| Enumerator | |
|---|---|
| FrameWidth |
(1) Space reserved left, top, bottom of the SpinBox [sets QStyle::PM_SpinBoxFrameWidth] |
| ButtonWidth |
(16) Space reserved for the widget, right of the EditField |
| ButtonMargin |
(MainMargin 0, Right Top Bot 1) Where the up/down buttons are located, measured from right of the edit field and the top/right/bottom widget edges. |
| ButtonSpacing |
(1) spacing between up/down buttons |
| SymmetricButtons |
(0) Set to non-zero to make sure both buttons are always of the same height. To achieve this, the spacing of the buttons will be reduced by 1 if necessary to avoid rounding problems. Needs to be handled in your drawing code. |
| SupportFrameless |
(0) Set to non-zero to indicate that you are able to handle frame-less SpinBoxes. For a SpinBox with no frame, FrameWidth and Top/Bottom/Right ButtonMargin is ignored. |
| ContentsMargin |
(5) space between the bevel and the spinbox contents |
Relevant Generic elements:
Generic::Framefor the area around text input field and buttonsGeneric::ArrowUpGeneric::ArrowDowndrawn on the buttons
| Enumerator | |
|---|---|
| EditField |
the text contents area, painted after Generic::Frame
|
| UpButton |
Panel of the spinbox button which increases the value. |
| DownButton |
Panel of the spinbox button which decreases the value. |
| ButtonArea |
Can be used in addition or instead of The button area is painted before them. |
| PlusSymbol |
Plus symbol painted on top of the up button, centering primitive. |
| MinusSymbol |
Minus symbol painted on top of the down button, centering primitive. |
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.
KDE API Reference