From 96eaae090ebed7c9cef41303e4b43a2aac0b3d8b Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 8 Aug 2023 12:21:19 +0900 Subject: Drop TQT_TQ*_OBJECT defines Signed-off-by: Michele Calgaro --- kolourpaint/kpview.cpp | 4 ++-- kolourpaint/widgets/kpcolortoolbar.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'kolourpaint') diff --git a/kolourpaint/kpview.cpp b/kolourpaint/kpview.cpp index c130c0d9..ced8f825 100644 --- a/kolourpaint/kpview.cpp +++ b/kolourpaint/kpview.cpp @@ -969,7 +969,7 @@ void kpView::mouseMoveEvent (TQMouseEvent *e) // TODO: This is wrong if you leaveEvent the mainView by mouseMoving on the // mainView, landing on top of the thumbnailView cleverly put on top // of the mainView. - setHasMouse (TQT_TQRECT_OBJECT(rect ()).contains (e->pos ())); + setHasMouse (rect ().contains (e->pos ())); if (tool ()) tool ()->mouseMoveEvent (e); @@ -1003,7 +1003,7 @@ void kpView::mouseReleaseEvent (TQMouseEvent *e) << endl; #endif - setHasMouse (TQT_TQRECT_OBJECT(rect ()).contains (e->pos ())); + setHasMouse (rect ().contains (e->pos ())); if (tool ()) tool ()->mouseReleaseEvent (e); diff --git a/kolourpaint/widgets/kpcolortoolbar.cpp b/kolourpaint/widgets/kpcolortoolbar.cpp index d3bb51e1..6160c166 100644 --- a/kolourpaint/widgets/kpcolortoolbar.cpp +++ b/kolourpaint/widgets/kpcolortoolbar.cpp @@ -783,7 +783,7 @@ void kpTransparentColorCell::mousePressEvent (TQMouseEvent * /*e*/) // protected virtual [base TQWidget] void kpTransparentColorCell::mouseReleaseEvent (TQMouseEvent *e) { - if (TQT_TQRECT_OBJECT(rect ()).contains (e->pos ())) + if (rect ().contains (e->pos ())) { if (e->button () == Qt::LeftButton) { -- cgit v1.2.1