Drop TQT_TQ*_OBJECT defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/7/head
Michele Calgaro 1 year ago
parent f61d950f47
commit 6f0ece848b
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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\">";

Loading…
Cancel
Save