|
| ||||||||||||||
You need to inherit from this class if you want to implement K*NumInput for a different variable type
| |
Default constructor
| |
Parameters:
| below | A pointer to another KNumInput. |
| ~ |
| void |
[virtual]
Set the text and alignment of the main description label.
The vertical alignment flags have special meaning with this widget:
AlignTop The label is placed above the edit/slider
AlignVCenter The label is placed left beside the edit
AlignBottom The label is placed below the edit/slider
Parameters:
| label | The text of the label. Use QString::null to remove an existing one. |
| a | one of AlignLeft, AlignHCenter, YAlignRight and
AlignTop, AlignVCenter, AlignBottom.
default is AlignLeft | AlignTop.
|
| void |
Set the spacing of tickmarks for the slider.
Parameters:
| minor | Minor tickmark separation. |
| major | Major tickmark separation. |
| QSizePolicy |
[const]
Specifie that this widget may stretch horizontally, but is fixed vertically (like QSpinBox itself).
| QSize |
[const virtual]
Return a size which fits the contents of the control.
Returns: the preferred size necessary to show the control
| protected: /** * Call this function whenever you change something in the geometry * of your @ref KNumInput child. * */ void |
| void |
[pure virtual]
You need to overwrite this method and implement yourlayout calculations there.
See KIntNumInput / KDoubleNumInput implementation for details.
| KNumInput* |
| KNumInput* |
| int |
| int |
| QSize |
| QSize |
| private: void |