.TH "KDoubleValidator" kde3 "11 Jun 2005" "Version Version 3.4.1" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KDoubleValidator \- A locale-aware \fBQDoubleValidator\fP.  

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

.in +1c
.ti -1c
.RI "\fBKDoubleValidator\fP (\fBQObject\fP *parent, const char *name=0)"
.br
.ti -1c
.RI "\fBKDoubleValidator\fP (double \fBbottom\fP, double \fBtop\fP, int \fBdecimals\fP, \fBQObject\fP *parent, const char *name=0)"
.br
.ti -1c
.RI "virtual \fB~KDoubleValidator\fP ()"
.br
.ti -1c
.RI "virtual QValidator::State \fBvalidate\fP (\fBQString\fP &input, int &pos) const "
.br
.ti -1c
.RI "bool \fBacceptLocalizedNumbers\fP () const "
.br
.ti -1c
.RI "void \fBsetAcceptLocalizedNumbers\fP (bool accept)"
.br
.in -1c
.SS "Properties"

.in +1c
.ti -1c
.RI "bool \fBacceptLocalizedNumbers\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
A locale-aware \fBQDoubleValidator\fP. 

KDoubleValidator extends \fBQDoubleValidator\fP to be locale-aware. That means that - subject to not being disabled - KLocale::decimalPoint(), \fBKLocale::thousandsSeparator()\fP and \fBKLocale::positiveSign()\fP and \fBKLocale::negativeSign()\fP are respected.
.PP
\fBAuthor:\fP
.RS 4
Marc Mutz <mutz@kde.org> 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBKIntValidator\fP 
.RE
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP

.PP
Definition at line 181 of file knumvalidator.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KDoubleValidator::KDoubleValidator (\fBQObject\fP * parent, const char * name = \fC0\fP)"
.PP
Constuct a locale-aware KDoubleValidator with default range (whatever \fBQDoubleValidator\fP uses for that) and parent \fCparent\fP. 
.PP
Definition at line 300 of file knumvalidator.cpp.
.SS "KDoubleValidator::KDoubleValidator (double bottom, double top, int decimals, \fBQObject\fP * parent, const char * name = \fC0\fP)"
.PP
Constuct a locale-aware KDoubleValidator for range [\fCbottom\fP,\fCtop\fP] and a precision of \fCdecimals\fP decimals after the decimal point. 
.PP
Definition at line 306 of file knumvalidator.cpp.
.SS "KDoubleValidator::~\fBKDoubleValidator\fP ()\fC [virtual]\fP"
.PP
Destructs the validator. 
.PP
Definition at line 313 of file knumvalidator.cpp.
.SH "Member Function Documentation"
.PP 
.SS "QValidator::State KDoubleValidator::validate (\fBQString\fP & input, int & pos) const\fC [virtual]\fP"
.PP
Overloaded for internal reasons. 
.PP
The API is not affected. 
.PP
Reimplemented from \fBQDoubleValidator\fP.
.PP
Definition at line 326 of file knumvalidator.cpp.
.PP
References acceptLocalizedNumbers(), KLocale::decimalSymbol(), endl(), QString::find(), QString::isEmpty(), kdWarning(), QString::length(), KGlobal::locale(), KLocale::negativeSign(), KLocale::positiveSign(), QString::remove(), QString::replace(), and KLocale::thousandsSeparator().
.SS "bool KDoubleValidator::acceptLocalizedNumbers () const"
.PP
\fBReturns:\fP
.RS 4
whether localized numbers are accepted (default: true) 
.RE
.PP

.PP
Referenced by validate().
.SS "void KDoubleValidator::setAcceptLocalizedNumbers (bool accept)"
.PP
Sets whether to accept localized numbers (default: true). 
.PP
Definition at line 322 of file knumvalidator.cpp.

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