diff options
author | Michele Calgaro <[email protected]> | 2023-12-21 11:50:23 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-12-26 18:42:01 +0900 |
commit | 2a3a62bb995b73481a8a64658266adf22e523f7b (patch) | |
tree | 17e63d11e590bd93137dee185ff1342873f4ddea /tdestyles/highcolor | |
parent | af8caeadf368a17dabd9f53d4c661213c840eebd (diff) | |
download | tdelibs-2a3a62bb995b73481a8a64658266adf22e523f7b.tar.gz tdelibs-2a3a62bb995b73481a8a64658266adf22e523f7b.zip |
Replace various '#define' strings - part 6
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit d5688771d8a6837975be512ee37f61bad7dbd345)
Diffstat (limited to 'tdestyles/highcolor')
-rw-r--r-- | tdestyles/highcolor/highcolor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tdestyles/highcolor/highcolor.cpp b/tdestyles/highcolor/highcolor.cpp index e2b2ccdaa..5f82d8f0a 100644 --- a/tdestyles/highcolor/highcolor.cpp +++ b/tdestyles/highcolor/highcolor.cpp @@ -2032,14 +2032,14 @@ bool HighColorStyle::objectEventHandler( const TQStyleControlElementData &ceData // Find the top-level toolbar of this widget, since it may be nested in other // widgets that are on the toolbar. - TQWidget *widget = TQT_TQWIDGET(object); - TQWidget *parent = TQT_TQWIDGET(object->parent()); + TQWidget *widget = static_cast<TQWidget*>(object); + TQWidget *parent = static_cast<TQWidget*>(object->parent()); int x_offset = ceData.rect.x(), y_offset = ceData.rect.y(); while (parent && parent->parent() && !qstrcmp( parent->name(), kdeToolbarWidget ) ) { x_offset += parent->x(); y_offset += parent->y(); - parent = TQT_TQWIDGET(parent->parent()); + parent = static_cast<TQWidget*>(parent->parent()); } TQRect r = ceData.rect; @@ -2067,7 +2067,7 @@ bool HighColorStyle::objectEventHandler( const TQStyleControlElementData &ceData if ( event->type() == TQEvent::Paint ) { - TQWidget *widget = TQT_TQWIDGET(object); + TQWidget *widget = static_cast<TQWidget*>(object); TQRect wr = ceData.rect, tr = ceData.parentWidgetData.rect; TQPainter p( widget ); renderGradient(&p, wr, toolbar->colorGroup().button(), |