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/base_mode.h | |
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/base_mode.h')
-rw-r--r-- | kig/modes/base_mode.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kig/modes/base_mode.h b/kig/modes/base_mode.h index 2f89996f..cb029abf 100644 --- a/kig/modes/base_mode.h +++ b/kig/modes/base_mode.h @@ -20,7 +20,7 @@ #include "mode.h" -#include <qpoint.h> +#include <tqpoint.h> #include <vector> class KigWidget; @@ -30,31 +30,31 @@ class ObjectHolder; class BaseMode : public KigMode { - QPoint mplc; + TQPoint mplc; std::vector<ObjectHolder*> moco; - void leftClicked( QMouseEvent* e, KigWidget* v ); - void leftMouseMoved( QMouseEvent*, KigWidget* ); - void leftReleased( QMouseEvent* e, KigWidget* v ); - void midClicked( QMouseEvent* e, KigWidget* v ); - void midReleased( QMouseEvent* e, KigWidget* v ); - void rightClicked( QMouseEvent*, KigWidget* ); - void mouseMoved( QMouseEvent* e, KigWidget* v ); + void leftClicked( TQMouseEvent* e, KigWidget* v ); + void leftMouseMoved( TQMouseEvent*, KigWidget* ); + void leftReleased( TQMouseEvent* e, KigWidget* v ); + void midClicked( TQMouseEvent* e, KigWidget* v ); + void midReleased( TQMouseEvent* e, KigWidget* v ); + void rightClicked( TQMouseEvent*, KigWidget* ); + void mouseMoved( TQMouseEvent* e, KigWidget* v ); protected: void enableActions(); std::vector<ObjectHolder*> oco(); - QPoint pointLocation(); + TQPoint pointLocation(); protected: - virtual void dragRect( const QPoint& p, KigWidget& w ); - virtual void dragObject( const std::vector<ObjectHolder*>& os, const QPoint& pointClickedOn, KigWidget& w, bool ctrlOrShiftDown ); - virtual void leftClickedObject( ObjectHolder* o, const QPoint& p, + virtual void dragRect( const TQPoint& p, KigWidget& w ); + virtual void dragObject( const std::vector<ObjectHolder*>& os, const TQPoint& pointClickedOn, KigWidget& w, bool ctrlOrShiftDown ); + virtual void leftClickedObject( ObjectHolder* o, const TQPoint& p, KigWidget& w, bool ctrlOrShiftDown ) = 0; - virtual void midClicked( const QPoint& p, KigWidget& w ) = 0; - virtual void rightClicked( const std::vector<ObjectHolder*>& oco, const QPoint& p, KigWidget& w ) = 0; - virtual void mouseMoved( const std::vector<ObjectHolder*>& os, const QPoint& p, KigWidget& w, bool shiftpressed ) = 0; + virtual void midClicked( const TQPoint& p, KigWidget& w ) = 0; + virtual void rightClicked( const std::vector<ObjectHolder*>& oco, const TQPoint& p, KigWidget& w ) = 0; + virtual void mouseMoved( const std::vector<ObjectHolder*>& os, const TQPoint& p, KigWidget& w, bool shiftpressed ) = 0; protected: BaseMode( KigPart& ); |