diff options
author | Michele Calgaro <[email protected]> | 2023-11-26 02:32:50 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-26 17:45:23 +0900 |
commit | 9fc074fcb2225e6303bf7cec6dc4cc85d6b5edb7 (patch) | |
tree | 656280d10f1f0acceacc67bf6544ae4d19812642 /tdefx | |
parent | 4c9f3f02c0e1a9be5567649f5c97d6638033f74f (diff) | |
download | tdelibs-9fc074fcb2225e6303bf7cec6dc4cc85d6b5edb7.tar.gz tdelibs-9fc074fcb2225e6303bf7cec6dc4cc85d6b5edb7.zip |
Replaced various '#define' with actual strings - part 4
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit 138bb80efac020c7e78871d3f05127eb37f18274)
Diffstat (limited to 'tdefx')
-rw-r--r-- | tdefx/tdestyle.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
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<TQWidget*>(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<TQWidget*>(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<TQFrame*>(object)) ) + && (frame = ::tqt_cast<TQFrame*>(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<TQPopupMenu*>(p)) - tdestyle->renderMenuBlendPixmap( blendPix, cg, ::tqqt_cast<TQPopupMenu*>(p) ); + if (::tqt_cast<TQPopupMenu*>(p)) + tdestyle->renderMenuBlendPixmap( blendPix, cg, ::tqt_cast<TQPopupMenu*>(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<TQPopupMenu*>(p)) + if (::tqt_cast<TQPopupMenu*>(p)) tdestyle->renderMenuBlendPixmap( renderPix, p->colorGroup(), - ::tqqt_cast<TQPopupMenu*>(p) ); + ::tqt_cast<TQPopupMenu*>(p) ); else renderPix.fill(p->colorGroup().button()); // Just tint as the default behavior |