Drop TQT_BASE_OBJECT* defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/8/head
Michele Calgaro 1 year ago
parent a86e049675
commit 2493c9445c
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -2068,7 +2068,7 @@ bool QtCurveStyle::objectEventHandler( const TQStyleControlElementData &ceData,
if (ceData.widgetObjectTypes.contains("TQObject")) {
TQObject* object = reinterpret_cast<TQObject*>(source);
if(itsHoverWidget && TQT_BASE_OBJECT(object)==TQT_BASE_OBJECT(itsHoverWidget) && (TQEvent::Destroy==event->type() || TQEvent::Hide==event->type()))
if(itsHoverWidget && object==itsHoverWidget && (TQEvent::Destroy==event->type() || TQEvent::Hide==event->type()))
resetHover();
#if 0
@ -2524,7 +2524,7 @@ bool QtCurveStyle::objectEventHandler( const TQStyleControlElementData &ceData,
}
break;
case TQEvent::Leave:
if(itsHoverWidget && TQT_BASE_OBJECT(object)==TQT_BASE_OBJECT(itsHoverWidget))
if(itsHoverWidget && object==itsHoverWidget)
{
resetHover();
((TQWidget *)object)->repaint(false);
@ -8951,7 +8951,7 @@ void QtCurveStyle::tdehtmlWidgetDestroyed(TQObject *o)
void QtCurveStyle::hoverWidgetDestroyed(TQObject *o)
{
if(TQT_BASE_OBJECT(o)==TQT_BASE_OBJECT(itsHoverWidget))
if(o==itsHoverWidget)
resetHover();
}

Loading…
Cancel
Save