summaryrefslogtreecommitdiffstats
path: root/krita/core/kis_rect.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /krita/core/kis_rect.h
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'krita/core/kis_rect.h')
-rw-r--r--krita/core/kis_rect.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/krita/core/kis_rect.h b/krita/core/kis_rect.h
index 268b64eb..30a729c8 100644
--- a/krita/core/kis_rect.h
+++ b/krita/core/kis_rect.h
@@ -18,12 +18,12 @@
#ifndef KIS_RECT_H_
#define KIS_RECT_H_
-#include <qrect.h>
+#include <tqrect.h>
#include <KoRect.h>
#include "kis_point.h"
/**
- * A double-based rect class that can return a QRect that encloses the KisRect.
+ * A double-based rect class that can return a TQRect that encloses the KisRect.
*/
class KisRect : public KoRect
{
@@ -32,18 +32,18 @@ public:
KisRect() {}
KisRect(double x, double y, double w, double h) : super(x, y, w, h) {}
KisRect(const KisPoint& topLeft, const KisPoint& bottomRight) : super(topLeft, bottomRight) {}
- KisRect(const QRect& qr) : super(qr.x(), qr.y(), qr.width(), qr.height()) {}
+ KisRect(const TQRect& qr) : super(qr.x(), qr.y(), qr.width(), qr.height()) {}
KisRect(const KoRect& r) : super(r) {}
/**
- * Return the QRect that encloses this KisRect.
+ * Return the TQRect that encloses this KisRect.
*/
- QRect qRect() const;
+ TQRect qRect() const;
private:
// Use qRect() which uses ceil() and floor() to return a rectangle
- // 'enclosing' the rectangle, whereas toQRect rounds the points.
- QRect toQRect() const;
+ // 'enclosing' the rectangle, whereas toTQRect rounds the points.
+ TQRect toTQRect() const;
};
#endif // KIS_RECT_H_