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/irc/kvi_avatar.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/irc/kvi_avatar.h')
-rw-r--r-- | src/kvilib/irc/kvi_avatar.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/kvilib/irc/kvi_avatar.h b/src/kvilib/irc/kvi_avatar.h index ba8edbc5..fddecf4d 100644 --- a/src/kvilib/irc/kvi_avatar.h +++ b/src/kvilib/irc/kvi_avatar.h @@ -29,37 +29,37 @@ #include "kvi_heapobject.h" #include "kvi_settings.h" -#include <qpixmap.h> +#include <tqpixmap.h> class KVILIB_API KviAvatar : public KviHeapObject { public: - KviAvatar(const QString &szLocalPath,const QString &szName,QPixmap * pix); + KviAvatar(const TQString &szLocalPath,const TQString &szName,TQPixmap * pix); ~KviAvatar(); private: - QString m_szLocalPath; - QString m_szName; + TQString m_szLocalPath; + TQString m_szName; bool m_bRemote; - QPixmap * m_pPixmap; - QPixmap * m_pScaledPixmap; + TQPixmap * m_pPixmap; + TQPixmap * m_pScaledPixmap; unsigned int m_uLastScaleWidth; unsigned int m_uLastScaleHeight; public: - QPixmap * pixmap(){ return m_pPixmap; }; - QPixmap * scaledPixmap(unsigned int w,unsigned int h); + TQPixmap * pixmap(){ return m_pPixmap; }; + TQPixmap * scaledPixmap(unsigned int w,unsigned int h); bool isRemote(){ return m_bRemote; }; - const QString &localPath(){ return m_szLocalPath; }; - const QString &name(){ return m_szName; }; + const TQString &localPath(){ return m_szLocalPath; }; + const TQString &name(){ return m_szName; }; // string that uniquely identifies this avatar // for remote avatars that have name starting with http:// // the name is used. // for local avatars the localPath is used instead - const QString &identificationString(){ return m_bRemote ? m_szName : m_szLocalPath; }; + const TQString &identificationString(){ return m_bRemote ? m_szName : m_szLocalPath; }; // if name is http://xxxx @@ -76,7 +76,7 @@ public: // ex: /home/pragma/.kvirc/avatars/pragma.png // local path->name : strip leading path informations - // name->local path : replace : / and + // name->local path : tqreplace : / and }; |