diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-04 23:32:44 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-05 20:51:25 +0900 |
| commit | 5a84066555984b1b0c6e00e950d8f6d106fe877b (patch) | |
| tree | 7cd9102a8ca3bcb3ffaa566d7302ad15e580d757 /src/gui/kdeext/klearlook.cpp | |
| parent | 7d34c9951c402a4c22da5597ed2e72f3caf66938 (diff) | |
| download | rosegarden-5a840665.tar.gz rosegarden-5a840665.zip | |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 1ec7b1dadc8d1668fb89cf06b32dfc52c18db4d6)
Diffstat (limited to 'src/gui/kdeext/klearlook.cpp')
| -rw-r--r-- | src/gui/kdeext/klearlook.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/gui/kdeext/klearlook.cpp b/src/gui/kdeext/klearlook.cpp index d4b5d1d..e05620e 100644 --- a/src/gui/kdeext/klearlook.cpp +++ b/src/gui/kdeext/klearlook.cpp @@ -2771,10 +2771,10 @@ void KlearlookStyle::drawControl( TQPixmap pixmap = *mi->pixmap(); if ( 1 == pixmap.depth() ) - p->setBackgroundMode( Qt::OpaqueMode ); + p->setBackgroundMode( TQt::OpaqueMode ); p->drawPixmap( ir.x(), ( ir.height() - pixmap.height() ) >> 1, pixmap ); if ( pixmap.depth() == 1 ) - p->setBackgroundMode( Qt::TransparentMode ); + p->setBackgroundMode( TQt::TransparentMode ); } if ( mi->popup() ) @@ -3307,7 +3307,7 @@ void KlearlookStyle::drawComplexControl( ( hw && HOVER_SB_SUB == hover ? Style_MouseOver : Style_Default ) | Style_Enabled | ( ( active == SC_ScrollBarSubLine ) ? Style_Down : Style_Default ) | - ( ( scrollbar->orientation() == Qt::Horizontal ) ? Style_Horizontal : Style_Default ) + ( ( scrollbar->orientation() == TQt::Horizontal ) ? Style_Horizontal : Style_Default ) ); if ( ( controls & SC_ScrollBarAddLine ) && addline.isValid() ) drawPrimitive( @@ -3315,34 +3315,34 @@ void KlearlookStyle::drawComplexControl( ( hw && HOVER_SB_ADD == hover ? Style_MouseOver : Style_Default ) | Style_Enabled | ( ( active == SC_ScrollBarAddLine ) ? Style_Down : Style_Default ) | - ( ( scrollbar->orientation() == Qt::Horizontal ) ? Style_Horizontal : Style_Default ) + ( ( scrollbar->orientation() == TQt::Horizontal ) ? Style_Horizontal : Style_Default ) ); if ( ( controls & SC_ScrollBarSubPage ) && subpage.isValid() ) drawPrimitive( PE_ScrollBarSubPage, p, ceData, elementFlags, subpage, cg, Style_Enabled | ( ( active == SC_ScrollBarSubPage ) ? Style_Down : Style_Default ) | - ( ( scrollbar->orientation() == Qt::Horizontal ) ? Style_Horizontal : Style_Default ) ); + ( ( scrollbar->orientation() == TQt::Horizontal ) ? Style_Horizontal : Style_Default ) ); if ( ( controls & SC_ScrollBarAddPage ) && addpage.isValid() ) drawPrimitive( PE_ScrollBarAddPage, p, ceData, elementFlags, addpage, cg, ( ( scrollbar->minValue() == scrollbar->maxValue() ) ? Style_Default : Style_Enabled ) | ( ( active == SC_ScrollBarAddPage ) ? Style_Down : Style_Default ) | - ( ( scrollbar->orientation() == Qt::Horizontal ) ? Style_Horizontal : Style_Default ) ); + ( ( scrollbar->orientation() == TQt::Horizontal ) ? Style_Horizontal : Style_Default ) ); if ( ( controls & SC_ScrollBarFirst ) && first.isValid() ) drawPrimitive( PE_ScrollBarFirst, p, ceData, elementFlags, first, cg, Style_Enabled | ( ( active == SC_ScrollBarFirst ) ? Style_Down : Style_Default ) | - ( ( scrollbar->orientation() == Qt::Horizontal ) ? Style_Horizontal : Style_Default ) ); + ( ( scrollbar->orientation() == TQt::Horizontal ) ? Style_Horizontal : Style_Default ) ); if ( ( controls & SC_ScrollBarLast ) && last.isValid() ) drawPrimitive( PE_ScrollBarLast, p, ceData, elementFlags, last, cg, Style_Enabled | ( ( active == SC_ScrollBarLast ) ? Style_Down : Style_Default ) | - ( ( scrollbar->orientation() == Qt::Horizontal ) ? Style_Horizontal : Style_Default ) ); + ( ( scrollbar->orientation() == TQt::Horizontal ) ? Style_Horizontal : Style_Default ) ); if ( ( controls & SC_ScrollBarSlider ) && slider.isValid() ) { drawPrimitive( PE_ScrollBarSlider, p, ceData, elementFlags, slider, cg, ( hw && HOVER_SB_SLIDER == hover ? Style_MouseOver : Style_Default ) | Style_Enabled | ( ( active == SC_ScrollBarSlider ) ? Style_Down : Style_Default ) | - ( ( scrollbar->orientation() == Qt::Horizontal ) ? Style_Horizontal : Style_Default ) ); + ( ( scrollbar->orientation() == TQt::Horizontal ) ? Style_Horizontal : Style_Default ) ); // ### perhaps this should not be able to accept focus if maxedOut? if ( scrollbar->hasFocus() ) @@ -3855,7 +3855,7 @@ void KlearlookStyle::drawSliderGroove drawPrimitive( PE_FocusRect, p, ceData, elementFlags, fr, TQColorGroup() ); } - if ( Qt::Horizontal == slider->orientation() ) { + if ( TQt::Horizontal == slider->orientation() ) { int dh = ( groove.height() - 5 ) >> 1; groove.addCoords( 0, dh, 0, -dh ); |
