summaryrefslogtreecommitdiffstats
path: root/kolourpaint/kpviewscrollablecontainer.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
commite69e8b1d09fb579316595b4e6a850e717358a8b1 (patch)
treea24fc20865f65772f530d16177520190594ffdd2 /kolourpaint/kpviewscrollablecontainer.h
parenteecec9afb81fdebb0f22e9da22635874c403f854 (diff)
downloadtdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz
tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip
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
Diffstat (limited to 'kolourpaint/kpviewscrollablecontainer.h')
-rw-r--r--kolourpaint/kpviewscrollablecontainer.h16
1 files changed, 9 insertions, 7 deletions
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,