From b0e0c34a735d21289b71a5403ab0bf9af2677b29 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 17 Dec 2023 20:19:45 +0900 Subject: Replace various '#define' strings - part 6 Signed-off-by: Michele Calgaro (cherry picked from commit 037ba5112aa3ab3b7f48b916504d65ef428ff292) --- style/lipstik.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/style/lipstik.cpp b/style/lipstik.cpp index 7d228ee..69fc5d0 100644 --- a/style/lipstik.cpp +++ b/style/lipstik.cpp @@ -385,12 +385,12 @@ void LipstikStyle::unPolish(const TQStyleControlElementData &ceData, ControlElem void LipstikStyle::tdehtmlWidgetDestroyed(TQObject* obj) { - tdehtmlWidgets.remove(TQT_TQWIDGET(obj)); + tdehtmlWidgets.remove(static_cast(obj)); } void LipstikStyle::progressBarDestroyed(TQObject* obj) { - progAnimWidgets.remove(TQT_TQWIDGET(obj)); + progAnimWidgets.remove(static_cast(obj)); } void LipstikStyle::renderContour(TQPainter *p, @@ -966,7 +966,7 @@ void LipstikStyle::renderPanel(TQPainter *p, if (kickerMode && p->device() && p->device()->devType() == TQInternal::Widget && - TQCString(TQT_TQWIDGET(static_cast(p->device()))->className()) == "FittsLawFrame") { + TQCString(static_cast(p->device())->className()) == "FittsLawFrame") { // Stolen wholesale from Keramik. I don't like it, but oh well. if (sunken) { const TQCOORD corners[] = { x2, y, x2, y2, x, y2, x, y }; @@ -3977,7 +3977,7 @@ bool LipstikStyle::objectEventHandler( const TQStyleControlElementData &ceData, // focus highlight if ( ::tqt_cast(obj) ) { - TQWidget* widget = TQT_TQWIDGET(obj); + TQWidget* widget = static_cast(obj); if ( ::tqt_cast(widget->parentWidget()) ) { @@ -4006,7 +4006,7 @@ bool LipstikStyle::objectEventHandler( const TQStyleControlElementData &ceData, } if ( !qstrcmp(obj->name(), "tde toolbar widget") ) { - TQWidget* lb = TQT_TQWIDGET(obj); + TQWidget* lb = static_cast(obj); if (lb->backgroundMode() == TQt::PaletteButton) lb->setBackgroundMode(TQt::PaletteBackground); removeObjectEventHandler(ceData, elementFlags, source, this); -- cgit v1.2.1