diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-08-08 12:19:16 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-08-08 17:48:35 +0900 |
commit | 267513f249e1b1be12b88bb44d8016968fee6045 (patch) | |
tree | ff3b4096e891031ad6cbef19c1c03d4e6309934d | |
parent | 48cec49a8f0bfb99e24a87a82c591328b1c198cb (diff) | |
download | kima-267513f249e1b1be12b88bb44d8016968fee6045.tar.gz kima-267513f249e1b1be12b88bb44d8016968fee6045.zip |
Drop TQT_TQ*_OBJECT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 6f0ece848b46d9fab71d9908ea4818bfc5f0159c)
-rw-r--r-- | src/kima.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/kima.cpp b/src/kima.cpp index 1cc8343..214b40e 100644 --- a/src/kima.cpp +++ b/src/kima.cpp @@ -332,7 +332,7 @@ void Kima::mousePressEvent(TQMouseEvent* inEvent ){ TQLayoutIterator it = mLayout->iterator(); while(it.current()){ TQWidget * c = it.current()->widget(); - if(TQT_TQRECT_OBJECT(c->rect()).contains(c->mapFromGlobal(inEvent->globalPos()))){ + if(c->rect().contains(c->mapFromGlobal(inEvent->globalPos()))){ mDraggedSourceItem = it.current(); // remenber the clicked source c->setCursor(TQt::SizeAllCursor); // set drag cursor mDragFactor = (c->rect().height()/2.0) / (double)c->mapFromGlobal(inEvent->globalPos()).y(); @@ -358,7 +358,7 @@ void Kima::mouseMoveEvent( TQMouseEvent* inEvent ) { TQLayoutIterator it = mLayout->iterator(); while(it.current()){ TQWidget * c = it.current()->widget(); - if(TQT_TQRECT_OBJECT(c->rect()).contains(c->mapFromGlobal(inEvent->globalPos()))){ + if(c->rect().contains(c->mapFromGlobal(inEvent->globalPos()))){ if(it.current() == mDraggedSourceItem) break; // we are over a source-widget. @@ -377,7 +377,7 @@ void Kima::mouseMoveEvent( TQMouseEvent* inEvent ) { ++it; } // outside kima? - if(!TQT_TQRECT_OBJECT(rect()).contains(mapToParent(inEvent->pos()))) + if(!rect().contains(mapToParent(inEvent->pos()))) mDraggedSourceItem->widget()->setCursor(TQt::ForbiddenCursor); else mDraggedSourceItem->widget()->setCursor(TQt::SizeAllCursor); @@ -414,7 +414,7 @@ void Kima::registerSource(Source* source) { } void Kima::maybeTip(const TQPoint& inPos){ - if(!TQT_TQRECT_OBJECT(rect()).contains(inPos)) + if(!rect().contains(inPos)) return; TQString text = "<b>" + i18n("Sources:") + "</b><br><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">"; |