summaryrefslogtreecommitdiffstats
path: root/src/kvilib/ext/kvi_pixmap.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 18:31:12 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 18:31:12 +0000
commit0a80cfd57d271dd44221467efb426675fa470356 (patch)
tree6f503a31aa078eaf8fa015cf1749808529d49fc9 /src/kvilib/ext/kvi_pixmap.h
parent3329e5a804e28ef3f5eb51d1e7affdd5a508e8f2 (diff)
downloadkvirc-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_pixmap.h')
-rw-r--r--src/kvilib/ext/kvi_pixmap.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/kvilib/ext/kvi_pixmap.h b/src/kvilib/ext/kvi_pixmap.h
index 7ba91cec..9f92e456 100644
--- a/src/kvilib/ext/kvi_pixmap.h
+++ b/src/kvilib/ext/kvi_pixmap.h
@@ -28,7 +28,7 @@
#include "kvi_settings.h"
#include "kvi_string.h"
-#include <qpixmap.h>
+#include <tqpixmap.h>
class KVILIB_API KviPixmap
{
@@ -38,23 +38,23 @@ public:
KviPixmap(const KviPixmap &pix);
~KviPixmap();
private:
- QPixmap * m_pPix;
- QString m_szPath;
+ TQPixmap * m_pPix;
+ TQString m_szPath;
public:
bool isNull(){ return m_pPix == 0; };
bool load(const char * path);
- bool load(const QString& path);
- const QString& path() const { return m_szPath; };
- QPixmap * pixmap() const { return m_pPix; };
- void set(const QPixmap &pix,const QString &szPath);
+ bool load(const TQString& path);
+ const TQString& path() const { return m_szPath; };
+ TQPixmap * pixmap() const { return m_pPix; };
+ void set(const TQPixmap &pix,const TQString &szPath);
KviPixmap & operator=(const KviPixmap &pix); // deep copy
void setNull();
};
namespace KviPixmapUtils
{
- extern KVILIB_API void drawPixmapWithPainter(QPainter* p,QPixmap * pix,int flags,const QRect& paintRect,int iWidgetWidth,int iWidgetHeight,int dx,int dy);
- inline void drawPixmapWithPainter(QPainter* p,QPixmap * pix,int flags,const QRect& paintRect,int iWidgetWidth,int iWidgetHeight)
+ extern KVILIB_API void drawPixmapWithPainter(TQPainter* p,TQPixmap * pix,int flags,const TQRect& paintRect,int iWidgetWidth,int iWidgetHeight,int dx,int dy);
+ inline void drawPixmapWithPainter(TQPainter* p,TQPixmap * pix,int flags,const TQRect& paintRect,int iWidgetWidth,int iWidgetHeight)
{ KviPixmapUtils::drawPixmapWithPainter(p,pix,flags,paintRect,iWidgetWidth,iWidgetHeight,paintRect.left(),paintRect.top()); };
};