org.kde.koala

Class KNumInput

public class KNumInput extends QWidget

You need to inherit from this class if you want to implement KNumInput for a different variable type

UNKNOWN: You need to inherit from this class if you want to implement K NumInput for a different variable type

Constructor Summary
protected KNumInput(Class dummy)
Method Summary
StringclassName()
Stringlabel()
QMetaObjectmetaObject()
voidsetLabel(String label, int a)
Sets the text and alignment of the main description label.
voidsetLabel(String label)
voidsetSteps(int minor, int major)
Sets the spacing of tickmarks for the slider.
booleanshowSlider()
QSizesizeHint()
Returns a size which fits the contents of the control.
QSizePolicysizePolicy()
Specifies that this widget may stretch horizontally, but is fixed vertically (like QSpinBox itself).

Constructor Detail

KNumInput

protected KNumInput(Class dummy)

Method Detail

className

public String className()

label

public String label()

Returns: the text of the label.

UNKNOWN:

metaObject

public QMetaObject metaObject()

setLabel

public void setLabel(String label, int a)
Sets the text and alignment of the main description label.

Parameters: label The text of the label. Use null to remove an existing one. a one of AlignLeft, AlignHCenter, YAlignRight and AlignTop, AlignVCenter, AlignBottom. default is AlignLeft | AlignTop. 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
  • UNKNOWN: Sets the text and alignment of the main description label.

    setLabel

    public void setLabel(String label)

    setSteps

    public void setSteps(int minor, int major)
    Sets the spacing of tickmarks for the slider.

    Parameters: minor Minor tickmark separation. major Major tickmark separation.

    UNKNOWN: Sets the spacing of tickmarks for the slider.

    showSlider

    public boolean showSlider()

    Returns: if the num input has a slider.

    UNKNOWN:

    sizeHint

    public QSize sizeHint()
    Returns a size which fits the contents of the control.

    Returns: the preferred size necessary to show the control

    UNKNOWN: Returns a size which fits the contents of the control.

    sizePolicy

    public QSizePolicy sizePolicy()
    Specifies that this widget may stretch horizontally, but is fixed vertically (like QSpinBox itself).

    UNKNOWN: Specifies that this widget may stretch horizontally, but is fixed vertically (like QSpinBox itself).