From cfc42a28c327b96c6a2afee92af3bac1a479eb8a Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:49:52 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdetoys@1157650 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- amor/amorwidget.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'amor/amorwidget.cpp') diff --git a/amor/amorwidget.cpp b/amor/amorwidget.cpp index e343524..c659af2 100644 --- a/amor/amorwidget.cpp +++ b/amor/amorwidget.cpp @@ -26,7 +26,7 @@ */ #include "amorwidget.h" #include "amorwidget.moc" -#include +#include #include #include @@ -35,7 +35,7 @@ // Constructor // AmorWidget::AmorWidget() - : QWidget(0, 0, WStyle_Customize | WStyle_NoBorder | WX11BypassWM ), + : TQWidget(0, 0, WStyle_Customize | WStyle_NoBorder | WX11BypassWM ), mPixmap(0) { setBackgroundMode( NoBackground ); @@ -54,7 +54,7 @@ AmorWidget::~AmorWidget() // // Set the pixmap to display // -void AmorWidget::setPixmap(const QPixmap *pixmap) +void AmorWidget::setPixmap(const TQPixmap *pixmap) { mPixmap = pixmap; @@ -75,7 +75,7 @@ void AmorWidget::setPixmap(const QPixmap *pixmap) // // Draw the pixmap // -void AmorWidget::paintEvent(QPaintEvent *) +void AmorWidget::paintEvent(TQPaintEvent *) { if (mPixmap) bitBlt( this, 0, 0, mPixmap ); @@ -87,7 +87,7 @@ void AmorWidget::paintEvent(QPaintEvent *) // // The user clicked on the widget // -void AmorWidget::mousePressEvent(QMouseEvent *me) +void AmorWidget::mousePressEvent(TQMouseEvent *me) { clickPos = me->globalPos(); } @@ -96,7 +96,7 @@ void AmorWidget::mousePressEvent(QMouseEvent *me) // // The user moved the mouse // -void AmorWidget::mouseMoveEvent(QMouseEvent *me) +void AmorWidget::mouseMoveEvent(TQMouseEvent *me) { if ( me->state() == LeftButton ) { if ( !dragging && (clickPos-me->globalPos()).manhattanLength() > 3 ) @@ -112,14 +112,14 @@ void AmorWidget::mouseMoveEvent(QMouseEvent *me) // // The user clicked on the widget // -void AmorWidget::mouseReleaseEvent(QMouseEvent *me) +void AmorWidget::mouseReleaseEvent(TQMouseEvent *me) { if ( dragging ) emit dragged( me->globalPos() - clickPos, true ); else if ( me->state() == RightButton ) emit mouseClicked(clickPos); - clickPos = QPoint(); + clickPos = TQPoint(); dragging = false; } -- cgit v1.2.1