summaryrefslogtreecommitdiffstats
path: root/src/upcvalidator.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-02 06:40:27 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-02 06:40:27 +0000
commit2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 (patch)
tree18a8f0f4ac5a86dacfa74c3537551ec39bc85e75 /src/upcvalidator.h
parent1d90725a4001fab9d3922b2cbcceeee5e2d1686f (diff)
downloadtellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.tar.gz
tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.zip
TQt4 port tellico
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1239054 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/upcvalidator.h')
-rw-r--r--src/upcvalidator.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/upcvalidator.h b/src/upcvalidator.h
index 73afa09..6239486 100644
--- a/src/upcvalidator.h
+++ b/src/upcvalidator.h
@@ -14,21 +14,22 @@
#ifndef UPCVALIDATOR_H
#define UPCVALIDATOR_H
-#include <qvalidator.h>
+#include <tqvalidator.h>
namespace Tellico {
/**
* @author Robby Stephenson
*/
-class UPCValidator : public QValidator {
+class UPCValidator : public TQValidator {
Q_OBJECT
+ TQ_OBJECT
public:
- UPCValidator(QObject* parent, const char* name=0);
+ UPCValidator(TQObject* tqparent, const char* name=0);
- virtual QValidator::State validate(QString& input, int& pos) const;
- virtual void fixup(QString& input) const;
+ virtual TQValidator::State validate(TQString& input, int& pos) const;
+ virtual void fixup(TQString& input) const;
void setCheckISBN(bool b) { m_checkISBN = b; }
@@ -36,7 +37,7 @@ signals:
void signalISBN();
private:
- State decodeCat(QString& str) const;
+ State decodeCat(TQString& str) const;
bool m_checkISBN : 1;
mutable bool m_isbn : 1;