Fix enum mismatch

Using own Orientation, not Qt::Orientation.

Signed-off-by: OBATA Akio <obache@wizdas.com>
pull/32/head
OBATA Akio 3 years ago
parent f14d04f59d
commit 4eb1ed120e

@ -297,7 +297,7 @@ void CStatusBarProgress::drawContents(TQPainter *p)
switch( mBarStyle ) switch( mBarStyle )
{ {
case Solid: case Solid:
if( mOrientation ==Qt::Horizontal ) if( mOrientation == Horizontal )
{ {
fr.setWidth(recalcValue(cr.width())); fr.setWidth(recalcValue(cr.width()));
er.setLeft(fr.right() + 1); er.setLeft(fr.right() + 1);
@ -319,7 +319,7 @@ void CStatusBarProgress::drawContents(TQPainter *p)
case Blocked: case Blocked:
const int margin = 2; const int margin = 2;
int max, num, dx, dy; int max, num, dx, dy;
if( mOrientation ==Qt::Horizontal ) if( mOrientation == Horizontal )
{ {
fr.setHeight(cr.height() - 2 * margin); fr.setHeight(cr.height() - 2 * margin);
fr.setWidth((int)(0.67 * fr.height())); fr.setWidth((int)(0.67 * fr.height()));
@ -350,7 +350,7 @@ void CStatusBarProgress::drawContents(TQPainter *p)
if (num != max) if (num != max)
{ {
if( mOrientation ==Qt::Horizontal ) if( mOrientation == Horizontal )
er.setLeft(fr.right() + 1); er.setLeft(fr.right() + 1);
else else
er.setBottom(fr.bottom() + 1); er.setBottom(fr.bottom() + 1);

Loading…
Cancel
Save