diff options
Diffstat (limited to 'kexi/kexiutils/longlongvalidator.h')
-rw-r--r-- | kexi/kexiutils/longlongvalidator.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kexi/kexiutils/longlongvalidator.h b/kexi/kexiutils/longlongvalidator.h index e20d2f95..bd211feb 100644 --- a/kexi/kexiutils/longlongvalidator.h +++ b/kexi/kexiutils/longlongvalidator.h @@ -22,51 +22,51 @@ #include "kexiutils_export.h" -#include <qvalidator.h> -class QWidget; +#include <tqvalidator.h> +class TQWidget; namespace KexiUtils { //! @short A validator for longlong data type. /*! - This can be used by QLineEdit or subclass to provide validated + This can be used by TQLineEdit 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> */ -class KEXIUTILS_EXPORT LongLongValidator : public QValidator +class KEXIUTILS_EXPORT LongLongValidator : public TQValidator { public: - 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 ); + LongLongValidator( TQWidget * tqparent, int base = 10, const char * name = 0 ); + LongLongValidator( TQ_LLONG bottom, TQ_LLONG top, TQWidget * tqparent, int base = 10, const char * name = 0 ); virtual ~LongLongValidator(); //! Validates the text, and returns the result. Does not modify the parameters. - virtual State validate( QString &, int & ) const; + virtual State validate( TQString &, int & ) const; //! Fixes the text if possible, providing a valid string. The parameter may be modified. - virtual void fixup( QString & ) const; + virtual void fixup( TQString & ) const; //! Sets the minimum and maximum values allowed. - virtual void setRange( Q_LLONG bottom, Q_LLONG top ); + virtual void setRange( TQ_LLONG bottom, TQ_LLONG top ); //! Sets the numeric base value. virtual void setBase( int base ); //! \return the current minimum value allowed - virtual Q_LLONG bottom() const; + virtual TQ_LLONG bottom() const; //! \return the current maximum value allowed - virtual Q_LLONG top() const; + virtual TQ_LLONG top() const; //! \return the current numeric base virtual int base () const; private: - Q_LLONG m_base; - Q_LLONG m_min; - Q_LLONG m_max; + TQ_LLONG m_base; + TQ_LLONG m_min; + TQ_LLONG m_max; }; } |