From 8688de253fda7a97697309962a8e2fd60a06ddb4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 26 Nov 2023 02:19:46 +0900 Subject: Replaced various '#define' with actual strings - part 4 Signed-off-by: Michele Calgaro --- style/lipstik.cpp | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/style/lipstik.cpp b/style/lipstik.cpp index 4dd4940..7d228ee 100644 --- a/style/lipstik.cpp +++ b/style/lipstik.cpp @@ -247,7 +247,7 @@ void LipstikStyle::updateProgressPos() bool visible = false; for (iter = progAnimWidgets.begin(); iter != progAnimWidgets.end(); ++iter) { - if ( !::tqqt_cast(iter.key()) ) + if ( !::tqt_cast(iter.key()) ) continue; pb = dynamic_cast(iter.key()); @@ -298,30 +298,30 @@ void LipstikStyle::polish(const TQStyleControlElementData &ceData, ControlElemen // use tqt_cast where possible to check if the widget inheits one of the classes. might improve // performance compared to TQObject::inherits() - if ( ::tqqt_cast(widget) || ::tqqt_cast(widget) || - ::tqqt_cast(widget) || ::tqqt_cast(widget) || - ::tqqt_cast(widget) || ::tqqt_cast(widget) || - ::tqqt_cast(widget) + if ( ::tqt_cast(widget) || ::tqt_cast(widget) || + ::tqt_cast(widget) || ::tqt_cast(widget) || + ::tqt_cast(widget) || ::tqt_cast(widget) || + ::tqt_cast(widget) ) { installObjectEventHandler(ceData, elementFlags, ptr, this); - } else if (::tqqt_cast(widget)) { + } else if (::tqt_cast(widget)) { widget->setMouseTracking(true); installObjectEventHandler(ceData, elementFlags, ptr, this); - } else if (::tqqt_cast(widget)) { + } else if (::tqt_cast(widget)) { widget->setBackgroundMode( NoBackground ); - } else if(::tqqt_cast(widget)) { + } else if(::tqt_cast(widget)) { widget->setMouseTracking(true); installObjectEventHandler(ceData, elementFlags, ptr, this); } else if (widget->inherits("TQSplitterHandle") || widget->inherits("TQDockWindowHandle") ) { installObjectEventHandler(ceData, elementFlags, ptr, this); - } else if (::tqqt_cast(widget)) { + } else if (::tqt_cast(widget)) { installObjectEventHandler(ceData, elementFlags, ptr, this); } else if ( !qstrcmp(widget->name(), "tde toolbar widget") ) { installObjectEventHandler(ceData, elementFlags, ptr, this); } - if( _animateProgressBar && ::tqqt_cast(widget) ) { + if( _animateProgressBar && ::tqt_cast(widget) ) { installObjectEventHandler(ceData, elementFlags, ptr, this); progAnimWidgets[widget] = 0; connect(widget, TQT_SIGNAL(destroyed(TQObject*)), this, TQT_SLOT(progressBarDestroyed(TQObject*))); @@ -353,27 +353,27 @@ void LipstikStyle::unPolish(const TQStyleControlElementData &ceData, ControlElem } // use tqt_cast to check if the widget inheits one of the classes. - if ( ::tqqt_cast(widget) || ::tqqt_cast(widget) || - ::tqqt_cast(widget) || ::tqqt_cast(widget) || - ::tqqt_cast(widget) || ::tqqt_cast(widget) || - ::tqqt_cast(widget) || ::tqqt_cast(widget) || + if ( ::tqt_cast(widget) || ::tqt_cast(widget) || + ::tqt_cast(widget) || ::tqt_cast(widget) || + ::tqt_cast(widget) || ::tqt_cast(widget) || + ::tqt_cast(widget) || ::tqt_cast(widget) || widget->inherits("TQSplitterHandle") ) { removeObjectEventHandler(ceData, elementFlags, ptr, this); } - else if (::tqqt_cast(widget)) { + else if (::tqt_cast(widget)) { widget->setMouseTracking(false); removeObjectEventHandler(ceData, elementFlags, ptr, this); - } else if (::tqqt_cast(widget)) { + } else if (::tqt_cast(widget)) { widget->setMouseTracking(false); removeObjectEventHandler(ceData, elementFlags, ptr, this); - } else if (::tqqt_cast(widget)) { + } else if (::tqt_cast(widget)) { widget->setBackgroundMode( PaletteBackground ); } else if ( !qstrcmp(widget->name(), "tde toolbar widget") ) { removeObjectEventHandler(ceData, elementFlags, ptr, this); } - if ( ::tqqt_cast(widget) ) { + if ( ::tqt_cast(widget) ) { progAnimWidgets.remove(widget); } else if( widget->inherits("KonqFrameStatusBar") ) { removeObjectEventHandler(ceData, elementFlags, ptr, this); @@ -3822,7 +3822,7 @@ int LipstikStyle::pixelMetric(PixelMetric m, const TQStyleControlElementData &ce return 1; case PM_DefaultFrameWidth: { - if(widget && ::tqqt_cast(widget)) + if(widget && ::tqt_cast(widget)) return 1; else return 2; @@ -3976,10 +3976,10 @@ bool LipstikStyle::objectEventHandler( const TQStyleControlElementData &ceData, if (!obj->isWidgetType() ) return false; // focus highlight - if ( ::tqqt_cast(obj) ) { + if ( ::tqt_cast(obj) ) { TQWidget* widget = TQT_TQWIDGET(obj); - if ( ::tqqt_cast(widget->parentWidget()) ) + if ( ::tqt_cast(widget->parentWidget()) ) { TQWidget* spinbox = widget->parentWidget(); if ((ev->type() == TQEvent::FocusIn) || (ev->type() == TQEvent::FocusOut)) @@ -3997,7 +3997,7 @@ bool LipstikStyle::objectEventHandler( const TQStyleControlElementData &ceData, } // Track show events for progress bars - if ( _animateProgressBar && ::tqqt_cast(obj) ) + if ( _animateProgressBar && ::tqt_cast(obj) ) { if ((ev->type() == TQEvent::Show) && !animationTimer->isActive()) { -- cgit v1.2.1