\section{KDouble\-Validator Class Reference}
\label{classKDoubleValidator}\index{KDoubleValidator@{KDoubleValidator}}
A locale-aware {\bf QDouble\-Validator}.  


{\tt \#include $<$knumvalidator.h$>$}

Inheritance diagram for KDouble\-Validator:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=65pt]{classKDoubleValidator__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KDouble\-Validator:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=65pt]{classKDoubleValidator__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KDouble\-Validator} ({\bf QObject} $\ast$parent, const char $\ast$name=0)
\item 
{\bf KDouble\-Validator} (double {\bf bottom}, double {\bf top}, int {\bf decimals}, {\bf QObject} $\ast$parent, const char $\ast$name=0)
\item 
virtual {\bf $\sim$KDouble\-Validator} ()
\item 
virtual QValidator::State {\bf validate} ({\bf QString} \&input, int \&pos) const 
\item 
bool {\bf accept\-Localized\-Numbers} () const 
\item 
void {\bf set\-Accept\-Localized\-Numbers} (bool accept)
\end{CompactItemize}
\subsection*{Properties}
\begin{CompactItemize}
\item 
bool {\bf accept\-Localized\-Numbers}\label{classKDoubleValidator_00}

\end{CompactItemize}


\subsection{Detailed Description}
A locale-aware {\bf QDouble\-Validator}. 

KDouble\-Validator extends {\bf QDouble\-Validator} to be locale-aware. That means that - subject to not being disabled - KLocale::decimal\-Point(), {\bf KLocale::thousands\-Separator()} and {\bf KLocale::positive\-Sign()} and {\bf KLocale::negative\-Sign()} are respected.

\begin{Desc}
\item[Author:]Marc Mutz $<${\tt mutz@kde.org}$>$ \end{Desc}
\begin{Desc}
\item[See also:]{\bf KInt\-Validator}{\rm (p.\,\pageref{classKIntValidator})} \end{Desc}
\begin{Desc}
\item[Since:]3.1 \end{Desc}




Definition at line 181 of file knumvalidator.h.

\subsection{Constructor \& Destructor Documentation}
\index{KDoubleValidator@{KDouble\-Validator}!KDoubleValidator@{KDoubleValidator}}
\index{KDoubleValidator@{KDoubleValidator}!KDoubleValidator@{KDouble\-Validator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDouble\-Validator::KDouble\-Validator ({\bf QObject} $\ast$ {\em parent}, const char $\ast$ {\em name} = {\tt 0})}\label{classKDoubleValidator_a0}


Constuct a locale-aware KDouble\-Validator with default range (whatever {\bf QDouble\-Validator} uses for that) and parent {\tt parent}. 



Definition at line 300 of file knumvalidator.cpp.\index{KDoubleValidator@{KDouble\-Validator}!KDoubleValidator@{KDoubleValidator}}
\index{KDoubleValidator@{KDoubleValidator}!KDoubleValidator@{KDouble\-Validator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDouble\-Validator::KDouble\-Validator (double {\em bottom}, double {\em top}, int {\em decimals}, {\bf QObject} $\ast$ {\em parent}, const char $\ast$ {\em name} = {\tt 0})}\label{classKDoubleValidator_a1}


Constuct a locale-aware KDouble\-Validator for range [{\tt bottom},{\tt top}] and a precision of {\tt decimals} decimals after the decimal point. 



Definition at line 306 of file knumvalidator.cpp.\index{KDoubleValidator@{KDouble\-Validator}!~KDoubleValidator@{$\sim$KDoubleValidator}}
\index{~KDoubleValidator@{$\sim$KDoubleValidator}!KDoubleValidator@{KDouble\-Validator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDouble\-Validator::$\sim${\bf KDouble\-Validator} ()\hspace{0.3cm}{\tt  [virtual]}}\label{classKDoubleValidator_a2}


Destructs the validator. 



Definition at line 313 of file knumvalidator.cpp.

\subsection{Member Function Documentation}
\index{KDoubleValidator@{KDouble\-Validator}!validate@{validate}}
\index{validate@{validate}!KDoubleValidator@{KDouble\-Validator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}QValidator::State KDouble\-Validator::validate ({\bf QString} \& {\em input}, int \& {\em pos}) const\hspace{0.3cm}{\tt  [virtual]}}\label{classKDoubleValidator_a3}


Overloaded for internal reasons. 

The API is not affected. 

Reimplemented from {\bf QDouble\-Validator}.

Definition at line 326 of file knumvalidator.cpp.

References accept\-Localized\-Numbers(), KLocale::decimal\-Symbol(), endl(), QString::find(), QString::is\-Empty(), kd\-Warning(), QString::length(), KGlobal::locale(), KLocale::negative\-Sign(), KLocale::positive\-Sign(), QString::remove(), QString::replace(), and KLocale::thousands\-Separator().\index{KDoubleValidator@{KDouble\-Validator}!acceptLocalizedNumbers@{acceptLocalizedNumbers}}
\index{acceptLocalizedNumbers@{acceptLocalizedNumbers}!KDoubleValidator@{KDouble\-Validator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KDouble\-Validator::accept\-Localized\-Numbers () const}\label{classKDoubleValidator_a4}


\begin{Desc}
\item[Returns:]whether localized numbers are accepted (default: true) \end{Desc}


Referenced by validate().\index{KDoubleValidator@{KDouble\-Validator}!setAcceptLocalizedNumbers@{setAcceptLocalizedNumbers}}
\index{setAcceptLocalizedNumbers@{setAcceptLocalizedNumbers}!KDoubleValidator@{KDouble\-Validator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDouble\-Validator::set\-Accept\-Localized\-Numbers (bool {\em accept})}\label{classKDoubleValidator_a5}


Sets whether to accept localized numbers (default: true). 



Definition at line 322 of file knumvalidator.cpp.

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
knumvalidator.h\item 
knumvalidator.cpp\end{CompactItemize}
