.TH "KFloatValidator" kde3 "11 Jun 2005" "Version Version 3.4.1" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KFloatValidator \- \fBQValidator\fP for floating point entry (Obsolete).  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <knumvalidator.h>\fP
.PP
Inherits \fBQValidator\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKFloatValidator\fP (\fBQWidget\fP *parent, const char *name=0)"
.br
.ti -1c
.RI "\fBKFloatValidator\fP (double bottom, double top, \fBQWidget\fP *parent, const char *name=0)"
.br
.ti -1c
.RI "\fBKFloatValidator\fP (double bottom, double top, bool localeAware, \fBQWidget\fP *parent, const char *name=0)"
.br
.ti -1c
.RI "virtual \fB~KFloatValidator\fP ()"
.br
.ti -1c
.RI "virtual State \fBvalidate\fP (\fBQString\fP &, int &) const "
.br
.ti -1c
.RI "virtual void \fBfixup\fP (\fBQString\fP &) const "
.br
.ti -1c
.RI "virtual void \fBsetRange\fP (double bottom, double top)"
.br
.ti -1c
.RI "virtual double \fBbottom\fP () const "
.br
.ti -1c
.RI "virtual double \fBtop\fP () const "
.br
.ti -1c
.RI "void \fBsetAcceptLocalizedNumbers\fP (bool b)"
.br
.ti -1c
.RI "bool \fBacceptLocalizedNumbers\fP () const "
.br
.in -1c
.SH "Detailed Description"
.PP 
\fBQValidator\fP for floating point entry (Obsolete). 

\fBDeprecated\fP
.RS 4
Use \fBKDoubleValidator\fP 
.RE
.PP
Extends the \fBQValidator\fP class to properly validate double numeric data. This can be used by \fBQLineEdit\fP or subclass to provide validated text entry.
.PP
\fBAuthor:\fP
.RS 4
Glen Parker <glenebob@nwlink.com> 
.RE
.PP
\fBVersion:\fP
.RS 4
0.0.1 
.RE
.PP

.PP
Definition at line 109 of file knumvalidator.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KFloatValidator::KFloatValidator (\fBQWidget\fP * parent, const char * name = \fC0\fP)"
.PP
Constructor. 
.PP
Definition at line 164 of file knumvalidator.cpp.
.SS "KFloatValidator::KFloatValidator (double bottom, double top, \fBQWidget\fP * parent, const char * name = \fC0\fP)"
.PP
Constructor. 
.PP
Also sets the minimum and maximum values. 
.PP
Definition at line 172 of file knumvalidator.cpp.
.SS "KFloatValidator::KFloatValidator (double bottom, double top, bool localeAware, \fBQWidget\fP * parent, const char * name = \fC0\fP)"
.PP
Constructor. 
.PP
Sets the validator to be locale aware if \fClocaleAware\fP is true. 
.PP
Definition at line 181 of file knumvalidator.cpp.
.SS "KFloatValidator::~\fBKFloatValidator\fP ()\fC [virtual]\fP"
.PP
Destructs the validator. 
.PP
Definition at line 190 of file knumvalidator.cpp.
.SH "Member Function Documentation"
.PP 
.SS "QValidator::State KFloatValidator::validate (\fBQString\fP &, int &) const\fC [virtual]\fP"
.PP
Validates the text, and return the result. 
.PP
Does not modify the parameters. 
.PP
Reimplemented from \fBQValidator\fP.
.PP
Definition at line 205 of file knumvalidator.cpp.
.PP
References KLocale::decimalSymbol(), QString::length(), KGlobal::locale(), KLocale::readNumber(), QString::stripWhiteSpace(), and QString::toDouble().
.PP
Referenced by fixup().
.SS "void KFloatValidator::fixup (\fBQString\fP &) const\fC [virtual]\fP"
.PP
Fixes the text if possible, providing a valid string. 
.PP
The parameter may be modified. 
.PP
Reimplemented from \fBQValidator\fP.
.PP
Definition at line 245 of file knumvalidator.cpp.
.PP
References validate().
.SS "void KFloatValidator::setRange (double bottom, double top)\fC [virtual]\fP"
.PP
Sets the minimum and maximum value allowed. 
.PP
Definition at line 267 of file knumvalidator.cpp.
.SS "double KFloatValidator::bottom () const\fC [virtual]\fP"
.PP
Returns the current minimum value allowed. 
.PP
Definition at line 276 of file knumvalidator.cpp.
.SS "double KFloatValidator::top () const\fC [virtual]\fP"
.PP
Returns the current maximum value allowed. 
.PP
Definition at line 281 of file knumvalidator.cpp.
.SS "void KFloatValidator::setAcceptLocalizedNumbers (bool b)"
.PP
Sets the validator to be locale aware if \fCis\fP true. 
.PP
In this case, the character \fBKLocale::decimalSymbol()\fP from the global locale is recognized as decimal separator. 
.PP
Definition at line 195 of file knumvalidator.cpp.
.SS "bool KFloatValidator::acceptLocalizedNumbers () const"
.PP
Returns true if the validator is locale aware. 
.PP
\fBSee also:\fP
.RS 4
\fBsetAcceptLocalizedNumbers()\fP. 
.RE
.PP

.PP
Definition at line 200 of file knumvalidator.cpp.

.SH "Author"
.PP 
Generated automatically by Doxygen for kdeui Library from the source code.
