class KNumInputabstract |
|
You need to inherit from this class if you want to implement K*NumInput for a different variable type |
|
Default constructor
parent - If parent is 0, the new widget becomes a top-level window. If parent is another widget, this widget becomes a child window inside parent. The new widget is deleted when its parent is deleted. |
|
below - A pointer to another KNumInput.
parent - parent widget Deprecated - use the version without the below parameter instead |
|
|
You need to overwrite this method and implement your layout
calculations there.
See KIntNumInput.doLayout and KDoubleNumInput.doLayout implementation for details. |
|
Returns the text of the label. |
|
Call this function whenever you change something in the geometry of your KNumInput child. |
|
Sets the text and alignment of the main description label.
label - The text of the label. Use QString() to remove an existing one. a - The alignment of the label (Qt.Alignment). Default is Qt:AlignLeft | Qt:AlignTop. The vertical alignment flags have special meaning with this widget:
|
|
Sets the spacing of tickmarks for the slider.
minor - Minor tickmark separation. major - Major tickmark separation. |
|
Returns if the num input has a slider. |
|
Returns a size which fits the contents of the control.
Returns the preferred size necessary to show the control |
|
Returns the slider widget. Internal |