summaryrefslogtreecommitdiffstats
path: root/src/gvcore/imageviewtools.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-26 21:04:57 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-26 21:04:57 +0000
commitbf7f88413be3831a9372d323d02fc0335b9f9188 (patch)
tree516fdef9206245b40a14f99b4e3d9ef9289196e0 /src/gvcore/imageviewtools.h
parente238aa77b1fb3c2f55aef2ef2c91ce52166d2cc8 (diff)
downloadgwenview-bf7f88413be3831a9372d323d02fc0335b9f9188.tar.gz
gwenview-bf7f88413be3831a9372d323d02fc0335b9f9188.zip
TQt4 port Gwenview
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/gwenview@1233720 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gvcore/imageviewtools.h')
-rw-r--r--src/gvcore/imageviewtools.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/gvcore/imageviewtools.h b/src/gvcore/imageviewtools.h
index f0d175b..5e23694 100644
--- a/src/gvcore/imageviewtools.h
+++ b/src/gvcore/imageviewtools.h
@@ -21,8 +21,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#ifndef IMAGEVIEWTOOLS_H
#define IMAGEVIEWTOOLS_H
-// Qt
-#include <qcursor.h>
+// TQt
+#include <tqcursor.h>
// Local
#include "imageview.h"
@@ -36,42 +36,42 @@ protected:
public:
ToolBase(ImageView* view);
virtual ~ToolBase();
- virtual void mouseMoveEvent(QMouseEvent*);
+ virtual void mouseMoveEvent(TQMouseEvent*);
- virtual void leftButtonPressEvent(QMouseEvent*);
- virtual void leftButtonReleaseEvent(QMouseEvent*);
+ virtual void leftButtonPressEvent(TQMouseEvent*);
+ virtual void leftButtonReleaseEvent(TQMouseEvent*);
- virtual void midButtonReleaseEvent(QMouseEvent*);
+ virtual void midButtonReleaseEvent(TQMouseEvent*);
- virtual void rightButtonPressEvent(QMouseEvent* event);
- virtual void rightButtonReleaseEvent(QMouseEvent*);
+ virtual void rightButtonPressEvent(TQMouseEvent* event);
+ virtual void rightButtonReleaseEvent(TQMouseEvent*);
- virtual void wheelEvent(QWheelEvent* event);
+ virtual void wheelEvent(TQWheelEvent* event);
virtual void updateCursor();
/**
* Return a hint about the use of the tool
*/
- virtual QString hint() const=0;
+ virtual TQString hint() const=0;
};
class ImageView::ZoomTool : public ImageView::ToolBase {
private:
- QCursor mZoomCursor;
- void zoomTo(const QPoint& pos, bool in);
+ TQCursor mZoomCursor;
+ void zoomTo(const TQPoint& pos, bool in);
public:
ZoomTool(ImageView* view);
- void leftButtonReleaseEvent(QMouseEvent* event);
+ void leftButtonReleaseEvent(TQMouseEvent* event);
- void wheelEvent(QWheelEvent* event);
- void rightButtonPressEvent(QMouseEvent*);
- void rightButtonReleaseEvent(QMouseEvent* event);
+ void wheelEvent(TQWheelEvent* event);
+ void rightButtonPressEvent(TQMouseEvent*);
+ void rightButtonReleaseEvent(TQMouseEvent* event);
void updateCursor();
- virtual QString hint() const;
+ virtual TQString hint() const;
};
@@ -81,13 +81,13 @@ class ImageView::ScrollTool : public ImageView::ToolBase {
public:
ScrollTool(ImageView* view);
- void leftButtonPressEvent(QMouseEvent* event);
- void mouseMoveEvent(QMouseEvent* event);
- void leftButtonReleaseEvent(QMouseEvent*);
- void wheelEvent(QWheelEvent* event);
+ void leftButtonPressEvent(TQMouseEvent* event);
+ void mouseMoveEvent(TQMouseEvent* event);
+ void leftButtonReleaseEvent(TQMouseEvent*);
+ void wheelEvent(TQWheelEvent* event);
void updateCursor();
- virtual QString hint() const;
+ virtual TQString hint() const;
};