diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 18:31:12 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 18:31:12 +0000 |
commit | 0a80cfd57d271dd44221467efb426675fa470356 (patch) | |
tree | 6f503a31aa078eaf8fa015cf1749808529d49fc9 /src/kvilib/ext/kvi_imagelib.h | |
parent | 3329e5a804e28ef3f5eb51d1e7affdd5a508e8f2 (diff) | |
download | kvirc-0a80cfd57d271dd44221467efb426675fa470356.tar.gz kvirc-0a80cfd57d271dd44221467efb426675fa470356.zip |
TQt4 port kvirc
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1238719 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kvilib/ext/kvi_imagelib.h')
-rw-r--r-- | src/kvilib/ext/kvi_imagelib.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/kvilib/ext/kvi_imagelib.h b/src/kvilib/ext/kvi_imagelib.h index d78c8d19..1bbccb1b 100644 --- a/src/kvilib/ext/kvi_imagelib.h +++ b/src/kvilib/ext/kvi_imagelib.h @@ -25,7 +25,7 @@ // // A class to manage multiple image libraries. -// The library is in fact a big image that contains +// The library is in fact a big image that tqcontains // several rows of other smaller images of the same size. // The images inside the 'library' are indexed in the following way: // @@ -47,26 +47,26 @@ #include "kvi_settings.h" -#include <qimage.h> +#include <tqimage.h> class KVILIB_API KviImageLibrary { public: // Consruction & Destruction -// KviImageLibrary(const QPixmap &pixmap,int imageWidth,int imageHeight); - KviImageLibrary(const QString &path,int imageWidth,int imageHeight); - KviImageLibrary(const QString &path1,const QString &path2,int imageWidth,int imageHeight); +// KviImageLibrary(const TQPixmap &pixmap,int imageWidth,int imageHeight); + KviImageLibrary(const TQString &path,int imageWidth,int imageHeight); + KviImageLibrary(const TQString &path1,const TQString &path2,int imageWidth,int imageHeight); ~KviImageLibrary(); public: // Fields - QImage *m_pLibrary; + TQImage *m_pLibrary; int m_iWidth; int m_iHeight; public: // Methods - bool loadLibrary(const QString &path); + bool loadLibrary(const TQString &path); void unloadLibrary(); int imageCount(); bool libraryLoaded(){ return (m_pLibrary != 0); }; - QImage *getLibrary(){ return m_pLibrary; }; - QPixmap getImage(int zeroBasedIndex); + TQImage *getLibrary(){ return m_pLibrary; }; + TQPixmap getImage(int zeroBasedIndex); bool setImageSize(int imageWidth,int imageHeight); }; |