diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-26 02:32:50 +0900 | 
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-26 17:45:23 +0900 | 
| commit | 9fc074fcb2225e6303bf7cec6dc4cc85d6b5edb7 (patch) | |
| tree | 656280d10f1f0acceacc67bf6544ae4d19812642 /tdestyles/keramik | |
| parent | 4c9f3f02c0e1a9be5567649f5c97d6638033f74f (diff) | |
| download | tdelibs-9fc074fc.tar.gz tdelibs-9fc074fc.zip | |
Replaced various '#define' with actual strings - part 4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 138bb80efac020c7e78871d3f05127eb37f18274)
Diffstat (limited to 'tdestyles/keramik')
| -rw-r--r-- | tdestyles/keramik/keramik.cpp | 16 | 
1 files changed, 8 insertions, 8 deletions
| diff --git a/tdestyles/keramik/keramik.cpp b/tdestyles/keramik/keramik.cpp index 508848b33..a3f35f176 100644 --- a/tdestyles/keramik/keramik.cpp +++ b/tdestyles/keramik/keramik.cpp @@ -369,7 +369,7 @@ void KeramikStyle::polish(const TQStyleControlElementData &ceData, ControlElemen  			installObjectEventHandler(ceData, elementFlags, ptr, this);  		} -		if (animateProgressBar && ::tqqt_cast<TQProgressBar*>(widget)) +		if (animateProgressBar && ::tqt_cast<TQProgressBar*>(widget))  		{  			installObjectEventHandler(ceData, elementFlags, ptr, this);  			progAnimWidgets[static_cast<TQProgressBar*>(widget)] = 0; @@ -412,7 +412,7 @@ void KeramikStyle::unPolish(const TQStyleControlElementData &ceData, ControlElem  			widget->setBackgroundMode( PaletteBackground );  			removeObjectEventHandler(ceData, elementFlags, ptr, this);  		} -		else if ( ::tqqt_cast<TQProgressBar*>(widget) ) +		else if ( ::tqt_cast<TQProgressBar*>(widget) )  		{  			progAnimWidgets.remove(static_cast<TQProgressBar*>(widget));  		} @@ -1107,7 +1107,7 @@ void KeramikStyle::drawPrimitive( PrimitiveElement pe,  			TQWidget*  paintWidget = dynamic_cast<TQWidget*>(p->device());  			TQToolBar* parent      = 0;  			if (paintWidget) -				parent = ::tqqt_cast<TQToolBar*>(paintWidget->parentWidget()); +				parent = ::tqt_cast<TQToolBar*>(paintWidget->parentWidget());  			renderToolbarEntryBackground(p, parent, r, cg, (flags & Style_Horizontal) );  			if ( !(flags & Style_Horizontal) ) @@ -2801,7 +2801,7 @@ bool KeramikStyle::objectEventHandler( const TQStyleControlElementData &ceData,  		if ( !object->isWidgetType() ) return false;  		//Combo line edits get special frames -		if ( event->type() == TQEvent::Paint && ::tqqt_cast<TQLineEdit*>(object) ) +		if ( event->type() == TQEvent::Paint && ::tqt_cast<TQLineEdit*>(object) )  		{  			static bool recursion = false;  			if (recursion ) @@ -2817,7 +2817,7 @@ bool KeramikStyle::objectEventHandler( const TQStyleControlElementData &ceData,  			recursion = false;  			return true;  		} -		else if ( ::tqqt_cast<TQListBox*>(object) )  +		else if ( ::tqt_cast<TQListBox*>(object) )   		{  			//Handle combobox drop downs  			switch (event->type()) @@ -2926,8 +2926,8 @@ bool KeramikStyle::objectEventHandler( const TQStyleControlElementData &ceData,  #if 0	// FIXME  		// This does not work on modern systems  		// Rather than resorting to hacks like this, which can stop working at any time, the required functionality should simply be added to TQt3! -		else if (event->type() == TQEvent::Paint  &&  object->parent() && ::tqqt_cast<TQToolBar*>(object->parent())  -				&& !::tqqt_cast<TQPopupMenu*>(object) ) +		else if (event->type() == TQEvent::Paint  &&  object->parent() && ::tqt_cast<TQToolBar*>(object->parent())  +				&& !::tqt_cast<TQPopupMenu*>(object) )  		{  			// We need to override the paint event to draw a  			// gradient on a QToolBarExtensionWidget. @@ -2961,7 +2961,7 @@ bool KeramikStyle::objectEventHandler( const TQStyleControlElementData &ceData,  		}  #endif  		// Track show events for progress bars -		if ( animateProgressBar && ::tqqt_cast<TQProgressBar*>(object) ) +		if ( animateProgressBar && ::tqt_cast<TQProgressBar*>(object) )  		{  			if ((event->type() == TQEvent::Show) && !animationTimer->isActive())  			{ | 
