summaryrefslogtreecommitdiffstats
path: root/src/kvilib/ext/kvi_doublebuffer.cpp
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_doublebuffer.cpp
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_doublebuffer.cpp')
-rw-r--r--src/kvilib/ext/kvi_doublebuffer.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/kvilib/ext/kvi_doublebuffer.cpp b/src/kvilib/ext/kvi_doublebuffer.cpp
index 5997e934..5f48a0cb 100644
--- a/src/kvilib/ext/kvi_doublebuffer.cpp
+++ b/src/kvilib/ext/kvi_doublebuffer.cpp
@@ -26,7 +26,7 @@
#include "kvi_doublebuffer.h"
-static QPixmap * g_pMemoryPixmap = 0;
+static TQPixmap * g_pMemoryPixmap = 0;
static unsigned int g_uMaxRequestedWidth = 0;
static unsigned int g_uMaxRequestedHeight = 0;
@@ -39,8 +39,8 @@ KviDoubleBuffer::KviDoubleBuffer(unsigned int uWidth,unsigned int uHeight)
unsigned int uMaxW = uWidth > g_pMemoryPixmap->width() ? uWidth : g_pMemoryPixmap->width();
unsigned int uMaxH = uHeight > g_pMemoryPixmap->height() ? uHeight : g_pMemoryPixmap->height();
#ifdef COMPILE_USE_QT4
- // QT4SUX: QPixmap::resize() is missing (it's a widely used function and assigning a new QPixmap() seems to be slower and not intuitive)
- *g_pMemoryPixmap = QPixmap(uMaxW,uMaxH);
+ // QT4SUX: TQPixmap::resize() is missing (it's a widely used function and assigning a new TQPixmap() seems to be slower and not intuitive)
+ *g_pMemoryPixmap = TQPixmap(uMaxW,uMaxH);
#else
g_pMemoryPixmap->resize(uMaxW,uMaxH);
#endif
@@ -55,7 +55,7 @@ KviDoubleBuffer::~KviDoubleBuffer()
// We never shrink here (it's time consuming)
}
-QPixmap * KviDoubleBuffer::pixmap()
+TQPixmap * KviDoubleBuffer::pixmap()
{
return g_pMemoryPixmap;
}
@@ -63,7 +63,7 @@ QPixmap * KviDoubleBuffer::pixmap()
void KviDoubleBuffer::init()
{
if(g_pMemoryPixmap)return;
- g_pMemoryPixmap = new QPixmap();
+ g_pMemoryPixmap = new TQPixmap();
}
void KviDoubleBuffer::done()
@@ -79,8 +79,8 @@ void KviDoubleBuffer::heartbeat()
{
// do shrink :)
#ifdef COMPILE_USE_QT4
- // QT4SUX: QPixmap::resize() is missing (it's a widely used function and assigning a new QPixmap() seems to be slower and not intuitive)
- *g_pMemoryPixmap = QPixmap(g_uMaxRequestedWidth,g_uMaxRequestedHeight);
+ // QT4SUX: TQPixmap::resize() is missing (it's a widely used function and assigning a new TQPixmap() seems to be slower and not intuitive)
+ *g_pMemoryPixmap = TQPixmap(g_uMaxRequestedWidth,g_uMaxRequestedHeight);
#else
g_pMemoryPixmap->resize(g_uMaxRequestedWidth,g_uMaxRequestedHeight);
#endif