From 1a7a57976491e8df569198d8e903bf9e57e233f0 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 8 Nov 2023 11:05:10 +0900 Subject: Replace Qt with TQt Signed-off-by: Michele Calgaro --- scheck/scheck.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'scheck') diff --git a/scheck/scheck.cpp b/scheck/scheck.cpp index ee8a8331..e04b89d4 100644 --- a/scheck/scheck.cpp +++ b/scheck/scheck.cpp @@ -1132,7 +1132,7 @@ void StyleCheckStyle::drawPrimitive( PrimitiveElement pe, if (p && p->device()->devType() == TQInternal::Widget) { TQHeader* hdr = dynamic_cast(p->device()); if (hdr) - horizontal = hdr->orientation() ==Qt::Horizontal; + horizontal = hdr->orientation() ==TQt::Horizontal; } int x,y,w,h; @@ -1624,7 +1624,7 @@ void StyleCheckStyle::drawTDEStylePrimitive( TDEStylePrimitive kpe, // ------------------------------------------------------------------- case KPE_SliderGroove: { const TQSlider* slider = (const TQSlider*)widget; - bool horizontal = slider->orientation() ==Qt::Horizontal; + bool horizontal = slider->orientation() ==TQt::Horizontal; int gcenter = (horizontal ? r.height() : r.width()) / 2; TQRect gr; @@ -1658,7 +1658,7 @@ void StyleCheckStyle::drawTDEStylePrimitive( TDEStylePrimitive kpe, // ------------------------------------------------------------------- case KPE_SliderHandle: { const TQSlider* slider = (const TQSlider*)widget; - bool horizontal = slider->orientation() ==Qt::Horizontal; + bool horizontal = slider->orientation() ==TQt::Horizontal; int x,y,w,h; r.rect(&x, &y, &w, &h); int x2 = x+w-1; @@ -2108,14 +2108,14 @@ void StyleCheckStyle::drawControl( ControlElement element, // Draw the pixmap if ( pixmap->depth() == 1 ) - p->setBackgroundMode( Qt::OpaqueMode ); + p->setBackgroundMode( TQt::OpaqueMode ); int diffw = ( ( w - pixmap->width() ) / 2 ) + ( ( w - pixmap->width() ) % 2 ); p->drawPixmap( x+diffw, y+itemFrame, *pixmap ); if ( pixmap->depth() == 1 ) - p->setBackgroundMode( Qt::TransparentMode ); + p->setBackgroundMode( TQt::TransparentMode ); } } @@ -2354,7 +2354,7 @@ void StyleCheckStyle::drawComplexControl( ComplexControl control, TQRect pr = parent->rect(); renderGradient( p, r, cg.button(), - parent->orientation() == Qt::Vertical, + parent->orientation() == TQt::Vertical, r.x(), r.y(), pr.width()-2, pr.height()-2); } else if (widget->parent()->inherits("TQToolBarExtensionWidget")) @@ -2363,7 +2363,7 @@ void StyleCheckStyle::drawComplexControl( ComplexControl control, TQToolBar* toolbar = (TQToolBar*)parent->parent(); TQRect tr = toolbar->rect(); - if ( toolbar->orientation() == Qt::Horizontal ) { + if ( toolbar->orientation() == TQt::Horizontal ) { renderGradient( p, r, cg.button(), false, r.x(), r.y(), r.width(), tr.height() ); } else { -- cgit v1.2.1