summaryrefslogtreecommitdiffstats
path: root/scheck
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-08 11:05:10 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-08 11:13:41 +0900
commit1a7a57976491e8df569198d8e903bf9e57e233f0 (patch)
treea45ca34d705aeeacfcb9fb2abf9c254d4ebf8269 /scheck
parentff5a38ceb1f92082da2f5f65913bf590c20ccbc3 (diff)
downloadtdesdk-1a7a57976491e8df569198d8e903bf9e57e233f0.tar.gz
tdesdk-1a7a57976491e8df569198d8e903bf9e57e233f0.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'scheck')
-rw-r--r--scheck/scheck.cpp14
1 files changed, 7 insertions, 7 deletions
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<TQHeader*>(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 {