From e69e8b1d09fb579316595b4e6a850e717358a8b1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 19 Jun 2011 19:03:33 +0000 Subject: TQt4 port kdegraphics This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kolourpaint/kpviewscrollablecontainer.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'kolourpaint/kpviewscrollablecontainer.h') diff --git a/kolourpaint/kpviewscrollablecontainer.h b/kolourpaint/kpviewscrollablecontainer.h index ad948e9a..08f79b1e 100644 --- a/kolourpaint/kpviewscrollablecontainer.h +++ b/kolourpaint/kpviewscrollablecontainer.h @@ -45,9 +45,10 @@ class kpMainWindow; // TODO: refactor by sharing iface's with kpTool -class kpGrip : public QWidget +class kpGrip : public TQWidget { Q_OBJECT + TQ_OBJECT public: enum GripType @@ -57,7 +58,7 @@ public: }; kpGrip (GripType type, - TQWidget *parent, const char *name = 0); + TQWidget *tqparent, const char *name = 0); virtual ~kpGrip (); GripType type () const; @@ -112,12 +113,13 @@ protected: }; -class kpViewScrollableContainer : public QScrollView +class kpViewScrollableContainer : public TQScrollView { Q_OBJECT + TQ_OBJECT public: - kpViewScrollableContainer (kpMainWindow *parent, const char *name = 0); + kpViewScrollableContainer (kpMainWindow *tqparent, const char *name = 0); virtual ~kpViewScrollableContainer (); // Same as contentsX() and contentsY() except that after @@ -169,9 +171,9 @@ protected: TQRect mapViewportToGlobal (const TQRect &viewportRect); TQRect mapViewToGlobal (const TQRect &viewRect); - void repaintWidgetAtResizeLineViewRect (TQWidget *widget, + void tqrepaintWidgetAtResizeLineViewRect (TQWidget *widget, const TQRect &resizeLineViewRect); - void repaintWidgetAtResizeLines (TQWidget *widget); + void tqrepaintWidgetAtResizeLines (TQWidget *widget); void eraseResizeLines (); void drawResizeLines (); @@ -211,7 +213,7 @@ protected slots: void slotViewDestroyed (); public slots: - // TODO: Why the QPoint's? + // TODO: Why the TQPoint's? // Why the need for view's zoomLevel? We have the view() anyway. bool beginDragScroll (const TQPoint &, const TQPoint &, int zoomLevel, -- cgit v1.2.3