diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
commit | e654398e46e37abf457b2b1122ab898d2c51c49f (patch) | |
tree | d39ee6440f3c3663c3ead84a2d4cc2d034667e96 /arts/builder/createtool.h | |
parent | e4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff) | |
download | tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'arts/builder/createtool.h')
-rw-r--r-- | arts/builder/createtool.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/arts/builder/createtool.h b/arts/builder/createtool.h index c8fe0763..15a4b5e7 100644 --- a/arts/builder/createtool.h +++ b/arts/builder/createtool.h @@ -22,8 +22,8 @@ #ifndef _CREATETOOL_H #define _CREATETOOL_H -#include <qwidget.h> -#include <qcursor.h> +#include <tqwidget.h> +#include <tqcursor.h> #include "structure.h" #include "module.h" @@ -41,17 +41,17 @@ public: MWidgetTool(ModuleWidget *mwidget); virtual ~MWidgetTool(); - virtual void mousePressEvent(QMouseEvent *e) = 0; - virtual void mouseMoveEvent(QMouseEvent *e) = 0; - virtual void mouseReleaseEvent(QMouseEvent *e) = 0; + virtual void mousePressEvent(TQMouseEvent *e) = 0; + virtual void mouseMoveEvent(TQMouseEvent *e) = 0; + virtual void mouseReleaseEvent(TQMouseEvent *e) = 0; }; class CreateTool: public MWidgetTool { protected: - QCursor oldCursor; + TQCursor oldCursor; bool oldMouseTracking; - QRect componentRect; + TQRect componentRect; int width, height; public: @@ -61,9 +61,9 @@ public: virtual void estimateSize() = 0; virtual void performCreate(int x, int y) = 0; - void mousePressEvent(QMouseEvent *e); - void mouseMoveEvent(QMouseEvent *e); - void mouseReleaseEvent(QMouseEvent *e); + void mousePressEvent(TQMouseEvent *e); + void mouseMoveEvent(TQMouseEvent *e); + void mouseReleaseEvent(TQMouseEvent *e); }; class CreateModuleTool: public CreateTool @@ -106,27 +106,27 @@ public: class MoveComponentsTool: public MWidgetTool { - QPoint lastPos; + TQPoint lastPos; public: - MoveComponentsTool(ModuleWidget *widget, QMouseEvent *e); + MoveComponentsTool(ModuleWidget *widget, TQMouseEvent *e); - void mousePressEvent(QMouseEvent *e); - void mouseMoveEvent(QMouseEvent *e); - void mouseReleaseEvent(QMouseEvent *e); + void mousePressEvent(TQMouseEvent *e); + void mouseMoveEvent(TQMouseEvent *e); + void mouseReleaseEvent(TQMouseEvent *e); }; class ConnectPortsTool: public MWidgetTool { ModulePort *connectingPort; - QPoint firstPos, lastPos; + TQPoint firstPos, lastPos; public: ConnectPortsTool(ModuleWidget *widget, ModulePort *connectingPort); - void mousePressEvent(QMouseEvent *e); - void mouseMoveEvent(QMouseEvent *e); - void mouseReleaseEvent(QMouseEvent *e); + void mousePressEvent(TQMouseEvent *e); + void mouseMoveEvent(TQMouseEvent *e); + void mouseReleaseEvent(TQMouseEvent *e); }; #endif |