diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:39:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:39:55 +0000 |
commit | 0a6e0958c03e41c87b15557b6f407874f20c2f8d (patch) | |
tree | 2cdd58c4013b1be09cfcbb4ddae2b05712b9aeee /kig/modes/dragrectmode.cc | |
parent | 83f9dfafc157ff7823804b3ff457b43d021a5b4b (diff) | |
download | tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.tar.gz tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1157642 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kig/modes/dragrectmode.cc')
-rw-r--r-- | kig/modes/dragrectmode.cc | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/kig/modes/dragrectmode.cc b/kig/modes/dragrectmode.cc index a3c8c033..3a827009 100644 --- a/kig/modes/dragrectmode.cc +++ b/kig/modes/dragrectmode.cc @@ -22,11 +22,11 @@ #include "../kig/kig_view.h" #include "../misc/kigpainter.h" -#include <qevent.h> -#include <qglobal.h> +#include <tqevent.h> +#include <tqglobal.h> #include <kaction.h> -DragRectMode::DragRectMode( const QPoint& start, KigPart& d, KigWidget& w ) +DragRectMode::DragRectMode( const TQPoint& start, KigPart& d, KigWidget& w ) : KigMode( d ), mstart( start ), mnc( true ), mstartselected( true ), mcancelled( false ) { @@ -41,25 +41,25 @@ DragRectMode::DragRectMode( KigPart& d, KigWidget& w ) w.updateWidget(); } -void DragRectMode::moved( const QPoint& p, KigWidget& w ) +void DragRectMode::moved( const TQPoint& p, KigWidget& w ) { // update the rect... w.updateCurPix(); - std::vector<QRect> overlay; + std::vector<TQRect> overlay; if ( mstartselected ) { KigPainter pt( w.screenInfo(), &w.curPix, mdoc.document() ); - pt.drawFilledRect( QRect( p, mstart ) ); + pt.drawFilledRect( TQRect( p, mstart ) ); overlay = pt.overlay(); }; w.updateWidget( overlay ); } -void DragRectMode::released( const QPoint& p, KigWidget& w, bool nc ) +void DragRectMode::released( const TQPoint& p, KigWidget& w, bool nc ) { if ( mstartselected ) { - mrect = w.fromScreen( QRect( mstart, p ) ); + mrect = w.fromScreen( TQRect( mstart, p ) ); mret = mdoc.document().whatIsInHere( mrect, w ); mnc = nc; @@ -84,12 +84,12 @@ bool DragRectMode::needClear() const return mnc; } -void DragRectMode::moved( QMouseEvent* e, KigWidget& w ) +void DragRectMode::moved( TQMouseEvent* e, KigWidget& w ) { moved( e->pos(), w ); } -void DragRectMode::released( QMouseEvent* e, KigWidget& w ) +void DragRectMode::released( TQMouseEvent* e, KigWidget& w ) { released( e->pos(), w, ! ( e->state() & ( ControlButton | ShiftButton ) ) ); } @@ -98,37 +98,37 @@ DragRectMode::~DragRectMode() { } -void DragRectMode::mouseMoved( QMouseEvent* e, KigWidget* w ) +void DragRectMode::mouseMoved( TQMouseEvent* e, KigWidget* w ) { moved( e, *w ); } -void DragRectMode::leftMouseMoved( QMouseEvent* e, KigWidget* w ) +void DragRectMode::leftMouseMoved( TQMouseEvent* e, KigWidget* w ) { moved( e, *w ); } -void DragRectMode::midMouseMoved( QMouseEvent* e, KigWidget* w ) +void DragRectMode::midMouseMoved( TQMouseEvent* e, KigWidget* w ) { moved( e, *w ); } -void DragRectMode::rightMouseMoved( QMouseEvent* e, KigWidget* w ) +void DragRectMode::rightMouseMoved( TQMouseEvent* e, KigWidget* w ) { moved( e, *w ); } -void DragRectMode::leftReleased( QMouseEvent* e, KigWidget* w ) +void DragRectMode::leftReleased( TQMouseEvent* e, KigWidget* w ) { released( e, *w ); } -void DragRectMode::midReleased( QMouseEvent* e, KigWidget* w ) +void DragRectMode::midReleased( TQMouseEvent* e, KigWidget* w ) { released( e, *w ); } -void DragRectMode::rightReleased( QMouseEvent* e, KigWidget* w ) +void DragRectMode::rightReleased( TQMouseEvent* e, KigWidget* w ) { released( e, *w ); } @@ -138,27 +138,27 @@ Rect DragRectMode::rect() const return mrect; } -void DragRectMode::clicked( const QMouseEvent* e, KigWidget& w ) +void DragRectMode::clicked( const TQMouseEvent* e, KigWidget& w ) { clicked( e->pos(), w ); } -void DragRectMode::leftClicked( QMouseEvent* e, KigWidget* w ) +void DragRectMode::leftClicked( TQMouseEvent* e, KigWidget* w ) { clicked( e, *w ); } -void DragRectMode::midClicked( QMouseEvent* e, KigWidget* w ) +void DragRectMode::midClicked( TQMouseEvent* e, KigWidget* w ) { clicked( e, *w ); } -void DragRectMode::rightClicked( QMouseEvent* e, KigWidget* w ) +void DragRectMode::rightClicked( TQMouseEvent* e, KigWidget* w ) { clicked( e, *w ); } -void DragRectMode::clicked( const QPoint& p, KigWidget& ) +void DragRectMode::clicked( const TQPoint& p, KigWidget& ) { if ( !mstartselected ) { |