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 --- tdefx/tdestyle.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tdefx/tdestyle.cpp') diff --git a/tdefx/tdestyle.cpp b/tdefx/tdestyle.cpp index 87c4f3991..a998943d9 100644 --- a/tdefx/tdestyle.cpp +++ b/tdefx/tdestyle.cpp @@ -267,7 +267,7 @@ void TDEStyle::polish( const TQStyleControlElementData &ceData, ControlElementFl TQWidget* widget = reinterpret_cast(ptr); if ( d->useFilledFrameWorkaround ) { - if ( TQFrame *frame = ::tqqt_cast< TQFrame* >( widget ) ) { + if ( TQFrame *frame = ::tqt_cast< TQFrame* >( widget ) ) { TQFrame::Shape shape = frame->frameShape(); if (shape == TQFrame::ToolBarPanel || shape == TQFrame::MenuBarPanel) widget->installEventFilter(this); @@ -291,7 +291,7 @@ void TDEStyle::unPolish( const TQStyleControlElementData &ceData, ControlElement TQWidget* widget = reinterpret_cast(ptr); if ( d->useFilledFrameWorkaround ) { - if ( TQFrame *frame = ::tqqt_cast< TQFrame* >( widget ) ) { + if ( TQFrame *frame = ::tqt_cast< TQFrame* >( widget ) ) { TQFrame::Shape shape = frame->frameShape(); if (shape == TQFrame::ToolBarPanel || shape == TQFrame::MenuBarPanel) widget->removeEventFilter(this); @@ -1927,14 +1927,14 @@ bool TDEStyle::objectEventHandler( const TQStyleControlElementData &ceData, Cont // -- Karol. TQFrame *frame = 0; if ( event->type() == TQEvent::Paint - && (frame = ::tqqt_cast(object)) ) + && (frame = ::tqt_cast(object)) ) { if (frame->frameShape() != TQFrame::ToolBarPanel && frame->frameShape() != TQFrame::MenuBarPanel) return false; bool horizontal = true; TQPaintEvent* pe = (TQPaintEvent*)event; - TQToolBar *toolbar = ::tqqt_cast< TQToolBar *>( frame ); + TQToolBar *toolbar = ::tqt_cast< TQToolBar *>( frame ); TQRect r = pe->rect(); if (toolbar && toolbar->orientation() == TQt::Vertical) @@ -2317,8 +2317,8 @@ void TransparencyHandler::blendToPixmap(const TQColorGroup &cg, const TQWidget* return; // Allow styles to define the blend pixmap - allows for some interesting effects. - if (::tqqt_cast(p)) - tdestyle->renderMenuBlendPixmap( blendPix, cg, ::tqqt_cast(p) ); + if (::tqt_cast(p)) + tdestyle->renderMenuBlendPixmap( blendPix, cg, ::tqt_cast(p) ); else blendPix.fill(cg.button()); // Just tint as the default behavior @@ -2339,9 +2339,9 @@ void TransparencyHandler::XRenderBlendToPixmap(const TQWidget* p) renderPix.resize( pix.width(), pix.height() ); // Allow styles to define the blend pixmap - allows for some interesting effects. - if (::tqqt_cast(p)) + if (::tqt_cast(p)) tdestyle->renderMenuBlendPixmap( renderPix, p->colorGroup(), - ::tqqt_cast(p) ); + ::tqt_cast(p) ); else renderPix.fill(p->colorGroup().button()); // Just tint as the default behavior -- cgit v1.2.3