# class KFloatValidator

###

Module | kdeui
Namespace |
Class | KFloatValidator
Inherits | QValidator

### methods

- KFloatValidator (parent)

  returns ctor
  KDE 4.1.0 and later only

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

  Constructor.

- KFloatValidator (bottom, top, parent)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  bottom | double |
  top | double |
  parent | QWidget |

  Constructor. Also sets the minimum and maximum values.

- KFloatValidator (bottom, top, localeAware, parent)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  bottom | double |
  top | double |
  localeAware | bool |
  parent | QWidget |

  Constructor. Sets the validator to be locale aware if localeAware is true.

- KFloatValidator (a0)

  returns ctor
  before KDE 4.1.0 only

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

- acceptLocalizedNumbers ( )

  returns bool

  Returns true if the validator is locale aware.

  See also setAcceptLocalizedNumbers().

- bottom ( )

  returns double

  Returns the current minimum value allowed.

- fixup (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | QString |

  Fixes the text if possible, providing a valid string. The parameter may be modified.

- setAcceptLocalizedNumbers (b)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  b | bool |

  Sets the validator to be locale aware if is true. In this case, the character KLocale.decimalSymbol() from the global locale is recognized as decimal separator.

- setRange (bottom, top)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  bottom | double |
  top | double |

  Sets the minimum and maximum value allowed.

- top ( )

  returns double

  Returns the current maximum value allowed.

- validate (a0, a1)

  returns QValidator.State

  Argument | Type | Default
  --- | --- | ---
  a0 | QString |
  a1 | int |

  Validates the text, and return the result. Does not modify the parameters.