From 0a80cfd57d271dd44221467efb426675fa470356 Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 28 Jun 2011 18:31:12 +0000 Subject: 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 --- src/kvilib/ext/kvi_doublebuffer.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/kvilib/ext/kvi_doublebuffer.cpp') 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 -- cgit v1.2.1