From 2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 2 Jul 2011 06:40:27 +0000 Subject: 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 --- src/translators/grs1importer.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'src/translators/grs1importer.h') 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 -#include -#include +#include +#include +#include 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 { + class TagPair : public TQPair { public: - TagPair() : QPair(-1, QVariant()) {} - TagPair(int n, const QVariant& v) : QPair(n, v) {} - QString toString() const { return QString::number(first) + second.toString(); } + TagPair() : TQPair(-1, TQVariant()) {} + TagPair(int n, const TQVariant& v) : TQPair(n, v) {} + TQString toString() const { return TQString::number(first) + second.toString(); } bool operator< (const TagPair& p) const { return toString() < p.toString(); } }; - typedef QMap TagMap; + typedef TQMap TagMap; static TagMap* s_tagMap; }; -- cgit v1.2.1