summaryrefslogtreecommitdiffstats
path: root/src/kvilib/ext/kvi_pixmap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kvilib/ext/kvi_pixmap.cpp')
-rw-r--r--src/kvilib/ext/kvi_pixmap.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/kvilib/ext/kvi_pixmap.cpp b/src/kvilib/ext/kvi_pixmap.cpp
index f22b03ef..c5877300 100644
--- a/src/kvilib/ext/kvi_pixmap.cpp
+++ b/src/kvilib/ext/kvi_pixmap.cpp
@@ -30,7 +30,7 @@
#include "kvi_pixmap.h"
#include "kvi_qstring.h"
-#include <qpainter.h>
+#include <tqpainter.h>
KviPixmap::KviPixmap()
{
@@ -52,7 +52,7 @@ KviPixmap::KviPixmap(const KviPixmap &pix)
{
if(pix.pixmap())
{
- m_pPix = new QPixmap(*(pix.pixmap()));
+ m_pPix = new TQPixmap(*(pix.pixmap()));
}
}
}
@@ -70,7 +70,7 @@ bool KviPixmap::load(const char * path)
m_szPath = path;
if(m_szPath.isEmpty())return false;
- m_pPix = new QPixmap(m_szPath);
+ m_pPix = new TQPixmap(m_szPath);
if(m_pPix->isNull())
{
@@ -82,14 +82,14 @@ bool KviPixmap::load(const char * path)
return true;
}
-bool KviPixmap::load(const QString& path)
+bool KviPixmap::load(const TQString& path)
{
if(m_pPix)delete m_pPix;
m_pPix = 0;
m_szPath = path;
if(m_szPath.isEmpty())return false;
- m_pPix = new QPixmap(m_szPath);
+ m_pPix = new TQPixmap(m_szPath);
if(m_pPix->isNull())
{
@@ -101,7 +101,7 @@ bool KviPixmap::load(const QString& path)
return true;
}
-void KviPixmap::set(const QPixmap &pix,const QString &szPath)
+void KviPixmap::set(const TQPixmap &pix,const TQString &szPath)
{
if(pix.isNull())
{
@@ -110,7 +110,7 @@ void KviPixmap::set(const QPixmap &pix,const QString &szPath)
}
if(m_pPix)delete m_pPix;
- m_pPix = new QPixmap(pix);
+ m_pPix = new TQPixmap(pix);
m_szPath = szPath;
}
@@ -125,7 +125,7 @@ void KviPixmap::setNull()
KviPixmap & KviPixmap::operator=(const KviPixmap &pix)
{
if(m_pPix == pix.m_pPix)return (*this); // self assignment (!!!)
- if(KviQString::equalCI(m_szPath,pix.path()))return (*this); // same pix
+ if(KviTQString::equalCI(m_szPath,pix.path()))return (*this); // same pix
if(m_pPix)delete m_pPix;
m_pPix = 0;
@@ -135,14 +135,14 @@ KviPixmap & KviPixmap::operator=(const KviPixmap &pix)
{
if(pix.pixmap())
{
- m_pPix = new QPixmap(*(pix.pixmap()));
+ m_pPix = new TQPixmap(*(pix.pixmap()));
}
}
return (*this);
}
-void KviPixmapUtils::drawPixmapWithPainter(QPainter* p,QPixmap * pix,int flags,const QRect& paintRect,int iWidgetWidth,int iWidgetHeight,int dx,int dy)
+void KviPixmapUtils::drawPixmapWithPainter(TQPainter* p,TQPixmap * pix,int flags,const TQRect& paintRect,int iWidgetWidth,int iWidgetHeight,int dx,int dy)
{
if(!pix)return;
if(!flags)
@@ -156,18 +156,18 @@ void KviPixmapUtils::drawPixmapWithPainter(QPainter* p,QPixmap * pix,int flags,c
int x=0;
int y=0;
- if( !(flags & Qt::AlignHorizontal_Mask ))
+ if( !(flags & TQt::AlignHorizontal_Mask ))
x=-1;
- else if ( flags & Qt::AlignRight )
+ else if ( flags & TQt::AlignRight )
x=iWidgetWidth - iPixWidth;
- else if( flags & Qt::AlignHCenter )
+ else if( flags & TQt::AlignHCenter )
x=(iWidgetWidth - iPixWidth)/2;
- if( !(flags & Qt::AlignVertical_Mask ))
+ if( !(flags & TQt::AlignVertical_Mask ))
y=-1;
- else if ( flags & Qt::AlignBottom )
+ else if ( flags & TQt::AlignBottom )
y=iWidgetHeight - iPixHeight;
- else if( flags & Qt::AlignVCenter )
+ else if( flags & TQt::AlignVCenter )
y=(iWidgetHeight - iPixHeight)/2;
if(x==-1) {