From 421b60af92c83b889f8903c2898f2bd07186fcd8 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 5 May 2011 22:07:15 +0000 Subject: TQt4 port kbfx This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kbfx@1230544 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/kbfxplasmacanvasabstractitem.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/kbfxplasmacanvasabstractitem.cpp') diff --git a/src/kbfxplasmacanvasabstractitem.cpp b/src/kbfxplasmacanvasabstractitem.cpp index 4655765..38e810e 100644 --- a/src/kbfxplasmacanvasabstractitem.cpp +++ b/src/kbfxplasmacanvasabstractitem.cpp @@ -35,8 +35,8 @@ #include "kbfxplasmacanvasabstractitem.h" -KbfxPlasmaCanvasAbstractItem::KbfxPlasmaCanvasAbstractItem ( QCanvasPixmapArray * a, QCanvas * canvas ) - : QCanvasSprite ( a,canvas ) +KbfxPlasmaCanvasAbstractItem::KbfxPlasmaCanvasAbstractItem ( TQCanvasPixmapArray * a, TQCanvas * canvas ) + : TQCanvasSprite ( a,canvas ) { m_source=0; @@ -65,24 +65,24 @@ KbfxPlasmaCanvasAbstractItem::isCurrent() } void -KbfxPlasmaCanvasAbstractItem::mousePressEvent ( QMouseEvent * e ) +KbfxPlasmaCanvasAbstractItem::mousePressEvent ( TQMouseEvent * e ) { e = e; } void -KbfxPlasmaCanvasAbstractItem::mouseMoveEvent ( QMouseEvent * e ) +KbfxPlasmaCanvasAbstractItem::mouseMoveEvent ( TQMouseEvent * e ) { e = e; } void -KbfxPlasmaCanvasAbstractItem::enterEvent ( QEvent * e ) +KbfxPlasmaCanvasAbstractItem::enterEvent ( TQEvent * e ) { e =e ; } -void KbfxPlasmaCanvasAbstractItem::mouseReleaseEvent ( QMouseEvent * e ) +void KbfxPlasmaCanvasAbstractItem::mouseReleaseEvent ( TQMouseEvent * e ) { e =e ; emit clicked(); @@ -104,25 +104,25 @@ void KbfxPlasmaCanvasAbstractItem::hideit() } void -KbfxPlasmaCanvasAbstractItem::draw ( QPainter& pe ) +KbfxPlasmaCanvasAbstractItem::draw ( TQPainter& pe ) { this->drawContent ( &pe ); } -void KbfxPlasmaCanvasAbstractItem::setLabelText ( QString s ) +void KbfxPlasmaCanvasAbstractItem::setLabelText ( TQString s ) { s = s; } -QPixmap +TQPixmap KbfxPlasmaCanvasAbstractItem::dragPixmap() { - return QPixmap(); + return TQPixmap(); } void -KbfxPlasmaCanvasAbstractItem::drawContent ( QPainter * p ) +KbfxPlasmaCanvasAbstractItem::drawContent ( TQPainter * p ) { p = p ; } -- cgit v1.2.1