# class KIntNumInput

###

Module | kdeui
Namespace |
Class | KIntNumInput
Inherits | KNumInput

### methods

- KIntNumInput (parent)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget | 0

  Constructs an input control for integer values with base 10 and initial value 0.

- KIntNumInput (value, parent, base)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  value | int |
  parent | QWidget | 0
  base | int | 10

  Constructor It constructs a QSpinBox that allows the input of integer numbers in the range of -INT_MAX to +INT_MAX. To set a descriptive label, use setLabel(). To enforce the value being in a range and optionally to attach a slider to it, use setRange().

  value - initial value for the control

  base - numeric base used for display

  parent - parent QWidget

- KIntNumInput (below, value, parent, base)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  below | KNumInput |
  value | int |
  parent | QWidget |
  base | int | 10

  Constructor

  the difference to the one above is the "below" parameter. It tells this instance that it is visually put below some other KNumInput widget. Note that these two KNumInput's need not to have the same parent widget or be in the same layout group. The effect is that it'll adjust its layout in correspondence with the layout of the other KNumInput's (you can build an arbitrary long chain).

  below - append KIntNumInput to the KNumInput chain

  value - initial value for the control

  base - numeric base used for display

  parent - parent QWidget

  Deprecated use the version without the below parameter instead.

- KIntNumInput (a0)

  returns ctor
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  a0 | KIntNumInput |

- KIntNumInput (a0)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QWidget | 0

- KIntNumInput (a0, a1, a2)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | int |
  a1 | QWidget | 0
  a2 | int | 10

- doLayout ( )

  returns Nothing

- maximum ( )

  returns int

  Returns the maximum value.

- minimum ( )

  returns int

  Returns the minimum value.

- minimumSizeHint ( )

  returns QSize

  This method returns the minimum size necessary to display the control. The minimum size is enough to show all the labels in the current font (font change may invalidate the return value).

  Returns the minimum size necessary to show the control

- prefix ( )

  returns QString

  Returns the prefix displayed in front of the value.

  See also setPrefix()

- referencePoint ( )

  returns int

  Returns the current reference point

- relativeValue ( )

  returns double

  Returns the curent value in units of the referencePoint.

- relativeValueChanged (a0)

  returns Nothing
  SIGNAL ("relativeValueChanged (double)")

  Argument | Type | Default
  --- | --- | ---
  a0 | double |

  Emitted whenever valueChanged is. Contains the change relative to the referencePoint.

- resizeEvent (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | QResizeEvent |

- setEditFocus (mark)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  mark | bool | 1

  sets focus to the edit widget and marks all text in if mark == true

- setLabel (label, a)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  label | QString |
  a | Qt.Alignment | Qt.AlignLeft|Qt.AlignTop

- setMaximum (max)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  max | int |

  Sets the maximum value.

- setMinimum (min)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  min | int |

  Sets the minimum value.

- setPrefix (prefix)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  prefix | QString |

  Sets the prefix to prefix. Use QString() to disable this feature. Formatting has to be provided (see above).

  See also QSpinBox.setPrefix(), #setSuffix()

- setRange (min, max, step)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  min | int |
  max | int |
  step | int | 1

  Sets the allowed input range and the step size for the slider and the spin box.

  min - minimum value

  max - maximum value

  step - step size

- setRange (min, max, step, slider)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  min | int |
  max | int |
  step | int |
  slider | bool |

  Deprecated Use the other setRange function and setSliderEnabled instead

- setReferencePoint (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | int |

  Sets the reference point for relativeValue.

- setRelativeValue (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | double |

  Sets the value in units of the referencePoint

- setSliderEnabled (enabled)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  enabled | bool | 1

  enabled - Show the slider @default enabled

- setSpecialValueText (text)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  text | QString |

  Sets the special value text. If set, the SpinBox will display this text instead of the numeric value whenever the current value is equal to minVal(). Typically this is used for indicating that the choice has a special (default) meaning.

- setSuffix (suffix)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  suffix | QString |

  Sets the suffix to suffix. Use QString() to disable this feature. Formatting has to be provided (e.g. a space separator between the prepended value and the suffix's text has to be provided as the first character in the suffix).

  See also QSpinBox.setSuffix(), #setPrefix()

- setValue (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | int |

  Sets the value of the control.

- specialValueText ( )

  returns QString

  Returns the string displayed for a special value.

  See also setSpecialValueText()

- spinBox ( )

  returns QSpinBox

  Returns the spin box widget. Internal

- suffix ( )

  returns QString

  Returns the suffix displayed behind the value.

  See also setSuffix()

- value ( )

  returns int

  Returns the current value.

- valueChanged (a0)

  returns Nothing
  SIGNAL ("valueChanged (int)")

  Argument | Type | Default
  --- | --- | ---
  a0 | int |

  Emitted every time the value changes (by calling setValue() or by user interaction).