summaryrefslogtreecommitdiffstats
path: root/chalk
diff options
context:
space:
mode:
Diffstat (limited to 'chalk')
-rw-r--r--chalk/plugins/tools/defaulttools/kis_tool_text.cpp2
-rw-r--r--chalk/ui/kobirdeyepanel.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/chalk/plugins/tools/defaulttools/kis_tool_text.cpp b/chalk/plugins/tools/defaulttools/kis_tool_text.cpp
index 1a2687f1..d1727f39 100644
--- a/chalk/plugins/tools/defaulttools/kis_tool_text.cpp
+++ b/chalk/plugins/tools/defaulttools/kis_tool_text.cpp
@@ -101,7 +101,7 @@ void KisToolText::buttonRelease(KisButtonReleaseEvent *e)
}
TQFontMetrics metrics(m_font);
- TQRect boundingRect = TQT_TQRECT_OBJECT(metrics.boundingRect(text)).normalize();
+ TQRect boundingRect = metrics.boundingRect(text).normalize();
int xB = - boundingRect.x();
int yB = - boundingRect.y();
diff --git a/chalk/ui/kobirdeyepanel.cpp b/chalk/ui/kobirdeyepanel.cpp
index f7a9842d..46e0a585 100644
--- a/chalk/ui/kobirdeyepanel.cpp
+++ b/chalk/ui/kobirdeyepanel.cpp
@@ -403,7 +403,7 @@ void KoBirdEyePanel::handleMouseMove(TQPoint p)
break;
default:
case DragHandleNone:
- if (TQT_TQRECT_OBJECT(m_thumbnail.rect()).contains(p)) {
+ if (m_thumbnail.rect().contains(p)) {
cursor = TQt::PointingHandCursor;
} else {
cursor = TQt::arrowCursor;
@@ -462,7 +462,7 @@ void KoBirdEyePanel::handleMousePress(TQPoint p)
enumDragHandle dragHandle = dragHandleAt(p);
if (dragHandle == DragHandleNone) {
- if (TQT_TQRECT_OBJECT(m_thumbnail.rect()).contains(p)) {
+ if (m_thumbnail.rect().contains(p)) {
// Snap visible area centre to p and begin a centre drag.