summaryrefslogtreecommitdiffstats
path: root/kolourpaint/kpview.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/kpview.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/kpview.h')
-rw-r--r--kolourpaint/kpview.h29
1 files changed, 15 insertions, 14 deletions
diff --git a/kolourpaint/kpview.h b/kolourpaint/kpview.h
index 6464d869..66471489 100644
--- a/kolourpaint/kpview.h
+++ b/kolourpaint/kpview.h
@@ -56,9 +56,10 @@ class kpViewScrollableContainer;
*
* @author Clarence Dang <dang@kde.org>
*/
-class kpView : public QWidget
+class kpView : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
@@ -80,7 +81,7 @@ public:
kpViewManager *viewManager,
kpView *buddyView,
kpViewScrollableContainer *scrollableContainer,
- TQWidget *parent, const char *name);
+ TQWidget *tqparent, const char *name);
/**
* Destructs this view. Informs the viewManager() that the mouse
@@ -147,8 +148,8 @@ public:
/**
* Sets the horizontal and vertical zoom levels.
*
- * @param hzoom Horizontal zoom level.
- * @param vzoom Vertical zoom level.
+ * @param hzoomQt::Horizontal zoom level.
+ * @param vzoomQt::Vertical zoom level.
*
* If reimplementing, you must call this base implementation.
*/
@@ -227,7 +228,7 @@ protected slots:
public:
/**
- * @param viewX Horizontal position in view coordinates.
+ * @param viewXQt::Horizontal position in view coordinates.
*
* @returns viewX transformed to document coordinates, based on the
* origin() and zoomLevelX().
@@ -235,7 +236,7 @@ public:
double transformViewToDocX (double viewX) const;
/**
- * @param viewY Vertical position in view coordinates.
+ * @param viewYQt::Vertical position in view coordinates.
*
* @returns viewY transformed to document coordinates, based on the
* origin() and zoomLevelY().
@@ -264,7 +265,7 @@ public:
/**
- * @param docX Horizontal position in document coordinates.
+ * @param docXQt::Horizontal position in document coordinates.
*
* @returns docX transformed to view coordinates, based on the origin()
* and zoomLevelX().
@@ -272,7 +273,7 @@ public:
double transformDocToViewX (double docX) const;
/**
- * @param docY Vertical position in document coordinates.
+ * @param docYQt::Vertical position in document coordinates.
*
* @returns docY transformed to view coordinates, based on the origin()
* and zoomLevelY().
@@ -343,10 +344,10 @@ protected:
public:
/**
* Adds a region (in view coordinates) to the dirty area that is
- * repainted when the parent @ref kpViewManager is set not to queue
+ * tqrepainted when the tqparent @ref kpViewManager is set not to queue
* updates.
*
- * @param region Region (in view coordinates) that needs repainting.
+ * @param region Region (in view coordinates) that needs tqrepainting.
*/
void addToQueuedArea (const TQRegion &region);
@@ -354,10 +355,10 @@ public:
* Convenience function. Same as above.
*
* Adds a rectangle (in view coordinates) to the dirty area that is
- * repainted when the parent @ref kpViewManager is set not to queue
+ * tqrepainted when the tqparent @ref kpViewManager is set not to queue
* updates.
*
- * @param rect Rectangle (in view coordinates) that needs repainting.
+ * @param rect Rectangle (in view coordinates) that needs tqrepainting.
*/
void addToQueuedArea (const TQRect &rect);
@@ -365,11 +366,11 @@ public:
* Removes the dirty region that has been queued for updating.
* Does not update the view.
*/
- void invalidateQueuedArea ();
+ void tqinvalidateQueuedArea ();
/**
* Updates the part of the view described by dirty region and then
- * calls invalidateQueuedArea(). Does nothing if @ref kpViewManager
+ * calls tqinvalidateQueuedArea(). Does nothing if @ref kpViewManager
* is set to queue updates.
*/
void updateQueuedArea ();