summaryrefslogtreecommitdiffstats
path: root/kig/misc/rect.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kig/misc/rect.cc')
-rw-r--r--kig/misc/rect.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/kig/misc/rect.cc b/kig/misc/rect.cc
index 183f50f8..652fae2d 100644
--- a/kig/misc/rect.cc
+++ b/kig/misc/rect.cc
@@ -153,9 +153,9 @@ void Rect::scale( const double r )
}
-TQRect Rect::toQRect() const
+TQRect Rect::toTQRect() const
{
- return TQRect(mBottomLeft.toQPoint(), topRight().toQPoint());
+ return TQRect(mBottomLeft.toTQPoint(), topRight().toTQPoint());
}
Coordinate Rect::bottomLeft() const
@@ -211,7 +211,7 @@ double Rect::height() const
return mheight;
}
-bool Rect::contains( const Coordinate& p, double allowed_miss ) const
+bool Rect::tqcontains( const Coordinate& p, double allowed_miss ) const
{
return p.x - left() >= - allowed_miss &&
p.y - bottom() >= - allowed_miss &&
@@ -219,7 +219,7 @@ bool Rect::contains( const Coordinate& p, double allowed_miss ) const
p.y - bottom() - height() <= allowed_miss;
}
-bool Rect::contains( const Coordinate& p ) const
+bool Rect::tqcontains( const Coordinate& p ) const
{
return p.x >= left() &&
p.y >= bottom() &&
@@ -253,7 +253,7 @@ Rect Rect::normalized() const
return t;
}
-Rect Rect::fromQRect( const TQRect& r )
+Rect Rect::fromTQRect( const TQRect& r )
{
return Rect( r.left(), r.top(), r.right(), r.bottom() );
}