diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-29 16:05:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-29 16:05:55 +0000 |
commit | 87a016680e3677da3993f333561e79eb0cead7d5 (patch) | |
tree | cbda2b4df8b8ee0d8d1617e6c75bec1e3ee0ccba /src/eventinfo.h | |
parent | 6ce3d1ad09c1096b5ed3db334e02859e45d5c32b (diff) | |
download | ktechlab-87a016680e3677da3993f333561e79eb0cead7d5.tar.gz ktechlab-87a016680e3677da3993f333561e79eb0cead7d5.zip |
TQt4 port ktechlab
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1238801 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/eventinfo.h')
-rw-r--r-- | src/eventinfo.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/eventinfo.h b/src/eventinfo.h index ddea10c..35d31d9 100644 --- a/src/eventinfo.h +++ b/src/eventinfo.h @@ -11,18 +11,18 @@ #ifndef EVENTINFO_H #define EVENTINFO_H -#include <qpoint.h> +#include <tqpoint.h> class ItemView; -class QCanvasItem; -class QEvent; -class QMouseEvent; -class QWheelEvent; +class TQCanvasItem; +class TQEvent; +class TQMouseEvent; +class TQWheelEvent; /** Contains information from for a mouse event that occured on a canvas. Like a -QMouseEvent / QEvent / QWheelEvent, but abstracted to the canvas coordinate +TQMouseEvent / TQEvent / TQWheelEvent, but abstracted to the canvas coordinate system, as well as holding lots of useful information. @author David Saxton */ @@ -30,19 +30,19 @@ class EventInfo { public: EventInfo(); - EventInfo( ItemView *itemView, QMouseEvent *e ); - EventInfo( ItemView *itemView, QWheelEvent *e ); - EventInfo( ItemView *itemView, QEvent *e ); + EventInfo( ItemView *itemView, TQMouseEvent *e ); + EventInfo( ItemView *itemView, TQWheelEvent *e ); + EventInfo( ItemView *itemView, TQEvent *e ); - QMouseEvent *mousePressEvent( int dx, int dy ) const; - QMouseEvent *mouseReleaseEvent( int dx, int dy ) const; - QMouseEvent *mouseDoubleClickEvent( int dx, int dy ) const; - QMouseEvent *mouseMoveEvent( int dx, int dy ) const; - QWheelEvent *wheelEvent( int dx, int dy ) const; + TQMouseEvent *mousePressEvent( int dx, int dy ) const; + TQMouseEvent *mouseReleaseEvent( int dx, int dy ) const; + TQMouseEvent *mouseDoubleClickEvent( int dx, int dy ) const; + TQMouseEvent *mouseMoveEvent( int dx, int dy ) const; + TQWheelEvent *wheelEvent( int dx, int dy ) const; - QPoint pos; - QPoint globalPos; - QCanvasItem *qcanvasItemClickedOn; + TQPoint pos; + TQPoint globalPos; + TQCanvasItem *qcanvasItemClickedOn; int itemRtti; short scrollDelta; Qt::Orientation scrollOrientation; |