kexi

KexiUtils::LongLongValidator Class Reference

#include <longlongvalidator.h>

List of all members.


Detailed Description

A validator for longlong data type.

This can be used by QLineEdit 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.

Based on KIntValidator code by Glen Parker <glenebob@nwlink.com>

Definition at line 38 of file longlongvalidator.h.


Public Member Functions

 LongLongValidator (QWidget *parent, int base=10, const char *name=0)
 LongLongValidator (Q_LLONG bottom, Q_LLONG top, QWidget *parent, int base=10, const char *name=0)
virtual ~LongLongValidator ()
virtual State validate (QString &, int &) const
virtual void fixup (QString &) const
virtual void setRange (Q_LLONG bottom, Q_LLONG top)
virtual void setBase (int base)
virtual Q_LLONG bottom () const
virtual Q_LLONG top () const
virtual int base () const

Member Function Documentation

QValidator::State LongLongValidator::validate ( QString &  ,
int &   
) const [virtual]

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

Definition at line 46 of file longlongvalidator.cpp.

void LongLongValidator::fixup ( QString &   )  const [virtual]

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

Definition at line 81 of file longlongvalidator.cpp.

void LongLongValidator::setRange ( Q_LLONG  bottom,
Q_LLONG  top 
) [virtual]

Sets the minimum and maximum values allowed.

Definition at line 105 of file longlongvalidator.cpp.

void LongLongValidator::setBase ( int  base  )  [virtual]

Sets the numeric base value.

Definition at line 114 of file longlongvalidator.cpp.

Q_LLONG LongLongValidator::bottom (  )  const [virtual]

Returns:
the current minimum value allowed

Definition at line 123 of file longlongvalidator.cpp.

Q_LLONG LongLongValidator::top (  )  const [virtual]

Returns:
the current maximum value allowed

Definition at line 128 of file longlongvalidator.cpp.

int LongLongValidator::base (  )  const [virtual]

Returns:
the current numeric base

Definition at line 133 of file longlongvalidator.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys