Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KFloatValidator Class Reference

#include <knumvalidator.h>

List of all members.

Public Methods

 KFloatValidator (QWidget *parent, const char *name=0)
 KFloatValidator (double bottom, double top, QWidget *parent, const char *name=0)
 KFloatValidator (double bottom, double top, bool localeAware, QWidget *parent, const char *name=0)
virtual ~KFloatValidator ()
virtual State validate (QString &, int &) const
virtual void fixup (QString &) const
virtual void setRange (double bottom, double top)
virtual double bottom () const
virtual double top () const
void setAcceptLocalizedNumbers (bool b)
bool acceptLocalizedNumbers () const


Detailed Description

@obsolete Use KDoubleValidator

QValidator for floating point entry. Extends the QValidator class to properly validate double numeric data. This can be used by QLineEdit or subclass to provide validated text entry.

Author:
Glen Parker <glenebob@nwlink.com>
Version:
0.0.1

Definition at line 106 of file knumvalidator.h.


Constructor & Destructor Documentation

KFloatValidator::KFloatValidator QWidget *    parent,
const char *    name = 0
 

Constructor.

KFloatValidator::KFloatValidator double    bottom,
double    top,
QWidget *    parent,
const char *    name = 0
 

Constructor. Also sets the minimum and maximum values.

KFloatValidator::KFloatValidator double    bottom,
double    top,
bool    localeAware,
QWidget *    parent,
const char *    name = 0
 

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

virtual KFloatValidator::~KFloatValidator   [virtual]
 

Destructs the validator.


Member Function Documentation

bool KFloatValidator::acceptLocalizedNumbers  
 

Returns true if the validator is locale aware.

See also:
setAcceptLocalizedNumbers().

virtual double KFloatValidator::bottom   [virtual]
 

Returns the current minimum value allowed.

virtual void KFloatValidator::fixup QString &    const [virtual]
 

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

void KFloatValidator::setAcceptLocalizedNumbers bool    b
 

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.

virtual void KFloatValidator::setRange double    bottom,
double    top
[virtual]
 

Sets the minimum and maximum value allowed.

virtual double KFloatValidator::top   [virtual]
 

Returns the current maximum value allowed.

virtual State KFloatValidator::validate QString &   ,
int &   
const [virtual]
 

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


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:14 2003 for kdelibs by doxygen1.2.18