From d7633c195a464e4d344ada9eea61afd10110598a Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 4 May 2011 19:54:24 +0000 Subject: Port kdesvn to TQt4 This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kdesvn@1230412 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/svnfrontend/graphtree/pannerview.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'src/svnfrontend/graphtree/pannerview.h') diff --git a/src/svnfrontend/graphtree/pannerview.h b/src/svnfrontend/graphtree/pannerview.h index 6c1a310..026488d 100644 --- a/src/svnfrontend/graphtree/pannerview.h +++ b/src/svnfrontend/graphtree/pannerview.h @@ -20,19 +20,20 @@ #ifndef PANNERVIEW_H #define PANNERVIEW_H -#include +#include /** @author Rajko Albrecht */ -class PannerView : public QCanvasView +class PannerView : public TQCanvasView { Q_OBJECT + TQ_OBJECT public: - PannerView(QWidget* parent=0, const char* name=0); + PannerView(TQWidget* tqparent=0, const char* name=0); virtual ~PannerView(); - void setZoomRect(const QRect& theValue); + void setZoomRect(const TQRect& theValue); void updateCurrentRect(); signals: @@ -40,14 +41,14 @@ signals: void zoomRectMoveFinished(); protected: - virtual void drawContents(QPainter* p, int clipx, int clipy, int clipw, int cliph); - virtual void contentsMouseMoveEvent(QMouseEvent* e); - virtual void contentsMousePressEvent(QMouseEvent* e); - virtual void contentsMouseReleaseEvent(QMouseEvent*); + virtual void drawContents(TQPainter* p, int clipx, int clipy, int clipw, int cliph); + virtual void contentsMouseMoveEvent(TQMouseEvent* e); + virtual void contentsMousePressEvent(TQMouseEvent* e); + virtual void contentsMouseReleaseEvent(TQMouseEvent*); protected: - QRect m_ZoomRect; + TQRect m_ZoomRect; bool m_Moving; - QPoint m_LastPos; + TQPoint m_LastPos; }; #endif -- cgit v1.2.1