diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
commit | e654398e46e37abf457b2b1122ab898d2c51c49f (patch) | |
tree | d39ee6440f3c3663c3ead84a2d4cc2d034667e96 /noatun/modules/kjofol-skin/parser.h | |
parent | e4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff) | |
download | tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'noatun/modules/kjofol-skin/parser.h')
-rw-r--r-- | noatun/modules/kjofol-skin/parser.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/noatun/modules/kjofol-skin/parser.h b/noatun/modules/kjofol-skin/parser.h index 97e20d99..3f691253 100644 --- a/noatun/modules/kjofol-skin/parser.h +++ b/noatun/modules/kjofol-skin/parser.h @@ -2,48 +2,48 @@ #define PARSER_H // system includes -#include <qstringlist.h> -#include <qpixmap.h> -#include <qimage.h> -#include <qdict.h> +#include <tqstringlist.h> +#include <tqpixmap.h> +#include <tqimage.h> +#include <tqdict.h> -class Parser : public QDict<QStringList> +class Parser : public TQDict<TQStringList> { class ImagePixmap { public: ImagePixmap() : mImage(0), mPixmap(0) {} ~ImagePixmap() {} - QImage mImage; - QPixmap mPixmap; + TQImage mImage; + TQPixmap mPixmap; }; public: Parser(); void conserveMemory(); - void open(const QString &file); + void open(const TQString &file); - QString dir() const; - QPixmap pixmap(const QString &pixmap) const + TQString dir() const; + TQPixmap pixmap(const TQString &pixmap) const { return getPair(pixmap)->mPixmap; } - QImage image(const QString &image) const + TQImage image(const TQString &image) const { return getPair(image)->mImage; } - QString about() const { return mSkinAbout; }; + TQString about() const { return mSkinAbout; }; - QString fileItem(const QString &file) const; + TQString fileItem(const TQString &file) const; - bool exist(const QString &i) const; + bool exist(const TQString &i) const; public: - QStringList& operator[](const QString &l) { return *find(l);} + TQStringList& operator[](const TQString &l) { return *find(l);} private: - ImagePixmap *getPair(const QString &i) const; + ImagePixmap *getPair(const TQString &i) const; private: - mutable QDict<ImagePixmap> mImageCache; - QString mDir; - QString mSkinAbout; + mutable TQDict<ImagePixmap> mImageCache; + TQString mDir; + TQString mSkinAbout; }; #endif // PARSER_H |