.TH "KIntValidator" kde3 "11 Jun 2005" "Version Version 3.4.1" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KIntValidator \- \fBQValidator\fP for integers.  

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

.in +1c
.ti -1c
.RI "\fBKIntValidator\fP (\fBQWidget\fP *parent, int base=10, const char *name=0)"
.br
.ti -1c
.RI "\fBKIntValidator\fP (int bottom, int top, \fBQWidget\fP *parent, int base=10, const char *name=0)"
.br
.ti -1c
.RI "virtual \fB~KIntValidator\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 (int bottom, int top)"
.br
.ti -1c
.RI "virtual void \fBsetBase\fP (int base)"
.br
.ti -1c
.RI "virtual int \fBbottom\fP () const "
.br
.ti -1c
.RI "virtual int \fBtop\fP () const "
.br
.ti -1c
.RI "virtual int \fBbase\fP () const "
.br
.in -1c
.SH "Detailed Description"
.PP 
\fBQValidator\fP for integers. 

This can be used by \fBQLineEdit\fP or subclass to provide validated text entry. Can be provided with a base value (default is 10), to allow the proper entry of hexadecimal, octal, or any other base numeric data.
.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 44 of file knumvalidator.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KIntValidator::KIntValidator (\fBQWidget\fP * parent, int base = \fC10\fP, const char * name = \fC0\fP)"
.PP
Constuctor. 
.PP
Also sets the base value. 
.PP
Definition at line 37 of file knumvalidator.cpp.
.SS "KIntValidator::KIntValidator (int bottom, int top, \fBQWidget\fP * parent, int base = \fC10\fP, const char * name = \fC0\fP)"
.PP
Constructor. 
.PP
Also sets the minimum, maximum, and numeric base values. 
.PP
Definition at line 47 of file knumvalidator.cpp.
.SS "KIntValidator::~\fBKIntValidator\fP ()\fC [virtual]\fP"
.PP
Destructs the validator. 
.PP
Definition at line 57 of file knumvalidator.cpp.
.SH "Member Function Documentation"
.PP 
.SS "QValidator::State KIntValidator::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 60 of file knumvalidator.cpp.
.PP
References QString::length(), QString::stripWhiteSpace(), QString::toInt(), and QString::upper().
.PP
Referenced by fixup().
.SS "void KIntValidator::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 94 of file knumvalidator.cpp.
.PP
References QString::setNum(), QString::toInt(), and validate().
.SS "void KIntValidator::setRange (int bottom, int top)\fC [virtual]\fP"
.PP
Sets the minimum and maximum values allowed. 
.PP
Definition at line 116 of file knumvalidator.cpp.
.SS "void KIntValidator::setBase (int base)\fC [virtual]\fP"
.PP
Sets the numeric base value. 
.PP
Definition at line 125 of file knumvalidator.cpp.
.SS "int KIntValidator::bottom () const\fC [virtual]\fP"
.PP
Returns the current minimum value allowed. 
.PP
Definition at line 131 of file knumvalidator.cpp.
.SS "int KIntValidator::top () const\fC [virtual]\fP"
.PP
Returns the current maximum value allowed. 
.PP
Definition at line 136 of file knumvalidator.cpp.
.SS "int KIntValidator::base () const\fC [virtual]\fP"
.PP
Returns the current numeric base. 
.PP
Definition at line 141 of file knumvalidator.cpp.

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