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 = "" + i18n("Sources:") + "
";