diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 20:34:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 20:34:15 +0000 |
commit | 1c1403293485f35fd53db45aaa77a01cdd9627e7 (patch) | |
tree | 38559cd68cd4f63023fb5f6375def9db3b8b491e /plugins/infowidget/flagdb.h | |
parent | 894f94545727610df22c4f73911d62d58266f695 (diff) | |
download | ktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.tar.gz ktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.zip |
TQt4 port ktorrent
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktorrent@1238733 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'plugins/infowidget/flagdb.h')
-rw-r--r-- | plugins/infowidget/flagdb.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/plugins/infowidget/flagdb.h b/plugins/infowidget/flagdb.h index f2524ab..9002671 100644 --- a/plugins/infowidget/flagdb.h +++ b/plugins/infowidget/flagdb.h @@ -19,10 +19,10 @@ #ifndef FLAGDB_H #define FLAGDB_H -#include <qpixmap.h> -#include <qstring.h> -#include <qstringlist.h> -#include <qmap.h> +#include <tqpixmap.h> +#include <tqstring.h> +#include <tqstringlist.h> +#include <tqmap.h> namespace kt { @@ -30,16 +30,16 @@ namespace kt { public: FlagDBSource(); - FlagDBSource(const char* type, const QString& pathPattern); - FlagDBSource(const QString& pathPattern); - QString getPath(const QString& country) const; + FlagDBSource(const char* type, const TQString& pathPattern); + FlagDBSource(const TQString& pathPattern); + TQString getPath(const TQString& country) const; const char* getType() { return type; }; - const QString& getPathPattern() { return pathPattern; }; + const TQString& getPathPattern() { return pathPattern; }; private: const char* type; - const QString pathPattern; + const TQString pathPattern; }; /** @@ -53,15 +53,15 @@ namespace kt ~FlagDB(); void addFlagSource(const FlagDBSource& source); - void addFlagSource(const char* type, const QString& pathPattern); - const QValueList<FlagDBSource>& listSources() const; - bool isFlagAvailable(const QString& country); - const QPixmap& getFlag(const QString& country); + void addFlagSource(const char* type, const TQString& pathPattern); + const TQValueList<FlagDBSource>& listSources() const; + bool isFlagAvailable(const TQString& country); + const TQPixmap& getFlag(const TQString& country); private: - static const QPixmap& nullPixmap; + static const TQPixmap& nullPixmap; int preferredWidth, preferredHeight; - QValueList<FlagDBSource> sources; - QMap<QString,QPixmap> db; + TQValueList<FlagDBSource> sources; + TQMap<TQString,TQPixmap> db; }; } |