Drop TQT_TQ*_OBJECT defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 6f0ece848b)
r14.1.x
Michele Calgaro 1 year ago
parent 48cec49a8f
commit 267513f249
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -332,7 +332,7 @@ void Kima::mousePressEvent(TQMouseEvent* inEvent ){
TQLayoutIterator it = mLayout->iterator(); TQLayoutIterator it = mLayout->iterator();
while(it.current()){ while(it.current()){
TQWidget * c = it.current()->widget(); 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 mDraggedSourceItem = it.current(); // remenber the clicked source
c->setCursor(TQt::SizeAllCursor); // set drag cursor c->setCursor(TQt::SizeAllCursor); // set drag cursor
mDragFactor = (c->rect().height()/2.0) / (double)c->mapFromGlobal(inEvent->globalPos()).y(); 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(); TQLayoutIterator it = mLayout->iterator();
while(it.current()){ while(it.current()){
TQWidget * c = it.current()->widget(); 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) if(it.current() == mDraggedSourceItem)
break; break;
// we are over a source-widget. // we are over a source-widget.
@ -377,7 +377,7 @@ void Kima::mouseMoveEvent( TQMouseEvent* inEvent ) {
++it; ++it;
} }
// outside kima? // outside kima?
if(!TQT_TQRECT_OBJECT(rect()).contains(mapToParent(inEvent->pos()))) if(!rect().contains(mapToParent(inEvent->pos())))
mDraggedSourceItem->widget()->setCursor(TQt::ForbiddenCursor); mDraggedSourceItem->widget()->setCursor(TQt::ForbiddenCursor);
else else
mDraggedSourceItem->widget()->setCursor(TQt::SizeAllCursor); mDraggedSourceItem->widget()->setCursor(TQt::SizeAllCursor);
@ -414,7 +414,7 @@ void Kima::registerSource(Source* source) {
} }
void Kima::maybeTip(const TQPoint& inPos){ void Kima::maybeTip(const TQPoint& inPos){
if(!TQT_TQRECT_OBJECT(rect()).contains(inPos)) if(!rect().contains(inPos))
return; return;
TQString text = "<b>" + i18n("Sources:") + "</b><br><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">"; TQString text = "<b>" + i18n("Sources:") + "</b><br><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";

Loading…
Cancel
Save