From 138bb80efac020c7e78871d3f05127eb37f18274 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 26 Nov 2023 02:32:50 +0900 Subject: Replaced various '#define' with actual strings - part 4 Signed-off-by: Michele Calgaro --- tdestyles/kthemestyle/kthemestyle.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'tdestyles/kthemestyle/kthemestyle.cpp') diff --git a/tdestyles/kthemestyle/kthemestyle.cpp b/tdestyles/kthemestyle/kthemestyle.cpp index f9f2c81c4..a55a200de 100644 --- a/tdestyles/kthemestyle/kthemestyle.cpp +++ b/tdestyles/kthemestyle/kthemestyle.cpp @@ -523,10 +523,10 @@ void KThemeStyle::polish( const TQStyleControlElementData &ceData, ControlElemen if (ceData.widgetObjectTypes.contains("TQWidget")) { TQWidget *w = reinterpret_cast(ptr); - if (::tqqt_cast(w)) + if (::tqt_cast(w)) w->setPaletteBackgroundColor(TQApplication::palette().color(TQPalette::Active, TQColorGroup::Background)); - if (::tqqt_cast(w) && !qstrcmp(w->name(), "tde toolbar widget")) + if (::tqt_cast(w) && !qstrcmp(w->name(), "tde toolbar widget")) installObjectEventHandler(ceData, elementFlags, ptr, this); if (w->backgroundPixmap() && !w->isTopLevel() && @@ -565,7 +565,7 @@ void KThemeStyle::polish( const TQStyleControlElementData &ceData, ControlElemen return ; } - if ( ::tqqt_cast(w) ) + if ( ::tqt_cast(w) ) { w->setBackgroundMode( TQWidget::NoBackground ); } @@ -573,7 +573,7 @@ void KThemeStyle::polish( const TQStyleControlElementData &ceData, ControlElemen { w->setBackgroundMode( TQWidget::PaletteBackground ); } - else if ( ::tqqt_cast(w) ) + else if ( ::tqt_cast(w) ) { popupPalette = w->palette(); if ( isColor( MenuItem ) || isColor( MenuItemDown ) ) @@ -593,7 +593,7 @@ void KThemeStyle::polish( const TQStyleControlElementData &ceData, ControlElemen w->setBackgroundMode( TQWidget::NoBackground ); } - else if ( ::tqqt_cast(w) ) + else if ( ::tqt_cast(w) ) { if ( isColor( IndicatorOff ) || isColor( IndicatorOn ) ) { @@ -608,7 +608,7 @@ void KThemeStyle::polish( const TQStyleControlElementData &ceData, ControlElemen w->setPalette( newPal ); } } - else if ( ::tqqt_cast(w) ) + else if ( ::tqt_cast(w) ) { if ( isColor( ExIndicatorOff ) || isColor( ExIndicatorOn ) ) { @@ -644,21 +644,21 @@ void KThemeStyle::unPolish( const TQStyleControlElementData &ceData, ControlElem } //Toolbar labels should nornally be PaletteButton - if ( ::tqqt_cast(w) && !qstrcmp(w->name(), "tde toolbar widget")) + if ( ::tqt_cast(w) && !qstrcmp(w->name(), "tde toolbar widget")) w->setBackgroundMode( TQWidget::PaletteButton ); //The same for menu bars, popup menus - else if ( ::tqqt_cast(w) || ::tqqt_cast(w) ) + else if ( ::tqt_cast(w) || ::tqt_cast(w) ) w->setBackgroundMode( TQWidget::PaletteButton ); - //For toolbar internal separators, return to button, too (can't use tqqt_cast here since don't have access to the class) + //For toolbar internal separators, return to button, too (can't use tqt_cast here since don't have access to the class) else if ( w->inherits( "TDEToolBarSeparator" ) || w->inherits( "QToolBarSeparator" ) ) w->setBackgroundMode( TQWidget::PaletteButton ); //For scrollbars, we don't do much, since the widget queries the style on the switch //Drop some custom palettes. ### this really should check the serial number to be 100% correct. - if ( ::tqqt_cast(w) || ::tqqt_cast(w) || ::tqqt_cast(w) || ::tqqt_cast(w) ) + if ( ::tqt_cast(w) || ::tqt_cast(w) || ::tqt_cast(w) || ::tqt_cast(w) ) w->unsetPalette(); } -- cgit v1.2.1