summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-08-12 18:45:29 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-08-15 20:07:05 +0900
commite8b48a25663b86e5ba8d4a93a7af483490fff07e (patch)
treeb08fe01d5b73372f670909cb7cb7ddae1bec18ac
parent254bc2f8c75238829316e709d1568049e8db5f0c (diff)
downloadtde-style-qtcurve-e8b48a25663b86e5ba8d4a93a7af483490fff07e.tar.gz
tde-style-qtcurve-e8b48a25663b86e5ba8d4a93a7af483490fff07e.zip
Drop TQT_BASE_OBJECT* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 2493c9445cef0f089ce4035a51609682a631ea84)
-rw-r--r--style/qtcurve.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/style/qtcurve.cpp b/style/qtcurve.cpp
index dcfd231..a384cb1 100644
--- a/style/qtcurve.cpp
+++ b/style/qtcurve.cpp
@@ -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();
}