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/modules/notifier/notifierwindowbody.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/modules/notifier/notifierwindowbody.cpp') diff --git a/src/modules/notifier/notifierwindowbody.cpp b/src/modules/notifier/notifierwindowbody.cpp index 7449aa9e..397068cd 100644 --- a/src/modules/notifier/notifierwindowbody.cpp +++ b/src/modules/notifier/notifierwindowbody.cpp @@ -26,19 +26,19 @@ #include "kvi_iconmanager.h" -#include -#include -#include +#include +#include +#include /* #ifdef QT3_SUPPORT #include #else - #include + #include #endif */ -KviNotifierWindowBody::KviNotifierWindowBody(QRect r) +KviNotifierWindowBody::KviNotifierWindowBody(TQRect r) { loadImages(); setHeight(r.height()); @@ -55,7 +55,7 @@ KviNotifierWindowBody::~KviNotifierWindowBody() void KviNotifierWindowBody::loadImages() { - QPixmap * p; + TQPixmap * p; if((p = g_pIconManager->getPixmap("notifier_pix_body_dx.png"))) m_pixDX = *p; if((p = g_pIconManager->getPixmap("notifier_pix_body_sx.png"))) @@ -189,11 +189,11 @@ void KviNotifierWindowBody::setWriteIcon(int state) { } }; -void KviNotifierWindowBody::draw(QPainter * p) { +void KviNotifierWindowBody::draw(TQPainter * p) { if (m_bNeedToRedraw) { - p->fillRect(QRect(m_pnt,m_rct.size()),m_mac_bkgColor); + p->fillRect(TQRect(m_pnt,m_rct.size()),m_mac_bkgColor); // Autotiled borders p->drawTiledPixmap(m_pnt.x(), m_pnt.y(), m_pixSX.width(), m_rct.height() - m_pixDWNSX.height() - m_pixKVIrcSX.height(), m_pixSX); @@ -219,14 +219,14 @@ void KviNotifierWindowBody::draw(QPainter * p) { } } -void KviNotifierWindowBody::mouseMoveEvent(QMouseEvent * e) { +void KviNotifierWindowBody::mouseMoveEvent(TQMouseEvent * e) { } -void KviNotifierWindowBody::mousePressEvent(QMouseEvent * e) { +void KviNotifierWindowBody::mousePressEvent(TQMouseEvent * e) { } -void KviNotifierWindowBody::mouseReleaseEvent(QMouseEvent * e) { +void KviNotifierWindowBody::mouseReleaseEvent(TQMouseEvent * e) { } -- cgit v1.2.1