summaryrefslogtreecommitdiffstats
path: root/src/kvilib/ext/kvi_doublebuffer.cpp
diff options
context:
space:
mode:
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