summaryrefslogtreecommitdiffstats
path: root/src/gui/kdeext/klearlook.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-12-09 18:25:42 +0900
committerMichele Calgaro <[email protected]>2023-12-10 00:57:53 +0900
commit0d651f25b2871e8e16bf7a1c3563066489a7a0b2 (patch)
treeab3b17b523e0ae3334541665a4625b99a42a76b1 /src/gui/kdeext/klearlook.cpp
parentd226182192d460ae262962fe9d79604037bf9705 (diff)
downloadrosegarden-0d651f25b2871e8e16bf7a1c3563066489a7a0b2.tar.gz
rosegarden-0d651f25b2871e8e16bf7a1c3563066489a7a0b2.zip
Remove various '#define' strings - part 6
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 9b054308cef27a642eaa6e9a86db215151468e0b)
Diffstat (limited to 'src/gui/kdeext/klearlook.cpp')
-rw-r--r--src/gui/kdeext/klearlook.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/kdeext/klearlook.cpp b/src/gui/kdeext/klearlook.cpp
index b6e7399..496ad62 100644
--- a/src/gui/kdeext/klearlook.cpp
+++ b/src/gui/kdeext/klearlook.cpp
@@ -682,8 +682,8 @@ bool KlearlookStyle::objectEventHandler( const TQStyleControlElementData &ceData
if ( object->parent() && 0 == qstrcmp( object->name(), kdeToolbarWidget ) ) {
// Draw background for custom widgets in the toolbar that have specified a "tde toolbar widget" name.
if ( TQEvent::Paint == event->type() ) {
- TQWidget * widget = TQT_TQWIDGET( object ),
- *parent = TQT_TQWIDGET( object->parent() );
+ TQWidget * widget = static_cast<TQWidget*>( object ),
+ *parent = static_cast<TQWidget*>( object->parent() );
#ifdef TQTC_GRADIENT_TOOLBARS_AND_MENUBARS
// Find the top-level toolbar of this widget, since it may be nested in other
// widgets that are on the toolbar.
@@ -693,7 +693,7 @@ bool KlearlookStyle::objectEventHandler( const TQStyleControlElementData &ceData
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 pr( parent->rect() );