Kexi API Documentation (2.0 alpha)

KexiUtils::LongLongValidator Class Reference

#include <longlongvalidator.h>

Inheritance diagram for KexiUtils::LongLongValidator:

QValidator 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
 Validates the text, and returns the result. Does not modify the parameters.
virtual void fixup (QString &) const
 Fixes the text if possible, providing a valid string. The parameter may be modified.
virtual void setRange (Q_LLONG bottom, Q_LLONG top)
 Sets the minimum and maximum values allowed.
virtual void setBase (int base)
 Sets the numeric base value.
virtual Q_LLONG bottom () const
virtual Q_LLONG top () const
virtual int base () const


Constructor & Destructor Documentation

LongLongValidator::LongLongValidator QWidget parent,
int  base = 10,
const char *  name = 0
 

Definition at line 28 of file longlongvalidator.cpp.

References setBase().

LongLongValidator::LongLongValidator Q_LLONG  bottom,
Q_LLONG  top,
QWidget parent,
int  base = 10,
const char *  name = 0
 

Definition at line 35 of file longlongvalidator.cpp.

References setBase(), and setRange().

LongLongValidator::~LongLongValidator  )  [virtual]
 

Definition at line 42 of file longlongvalidator.cpp.


Member Function Documentation

int LongLongValidator::base  )  const [virtual]
 

Returns:
the current numeric base

Definition at line 133 of file longlongvalidator.cpp.

Q_LLONG LongLongValidator::bottom  )  const [virtual]
 

Returns:
the current minimum value allowed

Definition at line 123 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.

References validate().

void LongLongValidator::setBase int  base  )  [virtual]
 

Sets the numeric base value.

Definition at line 114 of file longlongvalidator.cpp.

Referenced by LongLongValidator().

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.

Referenced by LongLongValidator().

Q_LLONG LongLongValidator::top  )  const [virtual]
 

Returns:
the current maximum value allowed

Definition at line 128 of file longlongvalidator.cpp.

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.

Referenced by fixup().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Kexi 2.0 alpha.
Documentation copyright © 2002-2007 the Kexi Team.
Generated on Tue Apr 1 20:50:55 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003