summaryrefslogtreecommitdiffstats
path: root/src/translators/grs1importer.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/translators/grs1importer.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/translators/grs1importer.h')
-rw-r--r--src/translators/grs1importer.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/translators/grs1importer.h b/src/translators/grs1importer.h
index a4929a4..04ea35b 100644
--- a/src/translators/grs1importer.h
+++ b/src/translators/grs1importer.h
@@ -17,9 +17,9 @@
#include "textimporter.h"
#include "../datavectors.h"
-#include <qvariant.h>
-#include <qmap.h>
-#include <qpair.h>
+#include <tqvariant.h>
+#include <tqmap.h>
+#include <tqpair.h>
namespace Tellico {
namespace Import {
@@ -29,9 +29,10 @@ namespace Tellico {
*/
class GRS1Importer : public TextImporter {
Q_OBJECT
+ TQ_OBJECT
public:
- GRS1Importer(const QString& text);
+ GRS1Importer(const TQString& text);
virtual ~GRS1Importer() {}
/**
@@ -40,23 +41,23 @@ public:
virtual Data::CollPtr collection();
/**
*/
- virtual QWidget* widget(QWidget*, const char*) { return 0; }
+ virtual TQWidget* widget(TQWidget*, const char*) { return 0; }
virtual bool canImport(int type) const;
private:
static void initTagMap();
- class TagPair : public QPair<int, QVariant> {
+ class TagPair : public TQPair<int, TQVariant> {
public:
- TagPair() : QPair<int, QVariant>(-1, QVariant()) {}
- TagPair(int n, const QVariant& v) : QPair<int, QVariant>(n, v) {}
- QString toString() const { return QString::number(first) + second.toString(); }
+ TagPair() : TQPair<int, TQVariant>(-1, TQVariant()) {}
+ TagPair(int n, const TQVariant& v) : TQPair<int, TQVariant>(n, v) {}
+ TQString toString() const { return TQString::number(first) + second.toString(); }
bool operator< (const TagPair& p) const {
return toString() < p.toString();
}
};
- typedef QMap<TagPair, QString> TagMap;
+ typedef TQMap<TagPair, TQString> TagMap;
static TagMap* s_tagMap;
};