summaryrefslogtreecommitdiffstats
path: root/kugar/lib/inputmask.h
diff options
context:
space:
mode:
Diffstat (limited to 'kugar/lib/inputmask.h')
-rw-r--r--kugar/lib/inputmask.h35
1 files changed, 18 insertions, 17 deletions
diff --git a/kugar/lib/inputmask.h b/kugar/lib/inputmask.h
index 2668ba0c..98d5c717 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;
};
}