summaryrefslogtreecommitdiffstats
path: root/scheck/scheck.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scheck/scheck.cpp')
-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 {