diff options
Diffstat (limited to 'lib/kofficecore/KoRect.cpp')
-rw-r--r-- | lib/kofficecore/KoRect.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/kofficecore/KoRect.cpp b/lib/kofficecore/KoRect.cpp index 78a63992d..2a3259a92 100644 --- a/lib/kofficecore/KoRect.cpp +++ b/lib/kofficecore/KoRect.cpp @@ -166,15 +166,15 @@ KoRect &KoRect::operator&=(const KoRect &rhs) { return *this; } -bool KoRect::tqcontains(const KoPoint &p) const { +bool KoRect::contains(const KoPoint &p) const { return (p.x() >= m_tl.x() && p.x() <= m_br.x() && p.y() >= m_tl.y() && p.y() <= m_br.y()); } -bool KoRect::tqcontains(const double &x, const double &y) const { +bool KoRect::contains(const double &x, const double &y) const { return (x >= m_tl.x() && x <= m_br.x() && y >= m_tl.y() && y <= m_br.y()); } -bool KoRect::tqcontains(const KoRect &r) const { +bool KoRect::contains(const KoRect &r) const { return (r.left() >= m_tl.x() && r.right() <= m_br.x() && r.top() >= m_tl.y() && r.bottom() <= m_br.y()); } |