diff options
| author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
|---|---|---|
| committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
| commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
| tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kugar/lib/inputmask.h | |
| parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
| download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip | |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kugar/lib/inputmask.h')
| -rw-r--r-- | kugar/lib/inputmask.h | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/kugar/lib/inputmask.h b/kugar/lib/inputmask.h index 2668ba0cc..98d5c7176 100644 --- a/kugar/lib/inputmask.h +++ b/kugar/lib/inputmask.h @@ -15,45 +15,46 @@ #ifndef INPUTMASK_H #define INPUTMASK_H -#include <qobject.h> +#include <tqobject.h> namespace Kugar { -class InputMask : public QObject +class InputMask : public TQObject { Q_OBJECT + TQ_OBJECT public: - InputMask( QObject *parent = 0, const char *name = 0 ); + InputMask( TQObject *tqparent = 0, const char *name = 0 ); ~InputMask(); - QString mask() const; - void setMask( const QString &mask ); + TQString tqmask() const; + void setMask( const TQString &tqmask ); - QString formatText( const QString &txt ); + TQString formatText( const TQString &txt ); private: - void parseInputMask( const QString &maskFields ); - bool isValidInput( QChar key, QChar mask ) const; - QString maskString( uint pos, const QString &str, bool clear = FALSE ) const; - QString clearString( uint pos, uint len ) const; - QString stripString( const QString &str ) const; - int findInMask( int pos, bool forward, bool findSeparator, QChar searchChar = QChar() ) const; + void parseInputMask( const TQString &tqmaskFields ); + bool isValidInput( TQChar key, TQChar tqmask ) const; + TQString tqmaskString( uint pos, const TQString &str, bool clear = FALSE ) const; + TQString clearString( uint pos, uint len ) const; + TQString stripString( const TQString &str ) const; + int findInMask( int pos, bool forward, bool findSeparator, TQChar searchChar = TQChar() ) const; private: - QString m_text; + TQString m_text; int m_maxLength; - QChar m_blank; - QString m_mask; + TQChar m_blank; + TQString m_tqmask; struct MaskInputData { enum Casemode { NoCaseMode, Upper, Lower }; - QChar maskChar; // either the separator char or the inputmask + TQChar tqmaskChar; // either the separator char or the inputtqmask bool separator; Casemode caseMode; }; - MaskInputData *m_maskData; + MaskInputData *m_tqmaskData; }; } |
