diff options
Diffstat (limited to 'src/kvilib/ext/kvi_pixmap.h')
-rw-r--r-- | src/kvilib/ext/kvi_pixmap.h | 18 |
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()); }; }; |