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.
FrameWidth
andButtonWidth
are used to size the contents area. To the EditField,FrameWidth
is added at the left, top, bottom whileButtonWidth
is added at the right.- The
ButtonMargin
is 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::Frame
for the area around text input field and buttonsGeneric::ArrowUp
Generic::ArrowDown
drawn 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-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.