Color change.
This commit is contained in:
@@ -136,9 +136,8 @@ void BCValueSlider::paintSliderIndicator2(QPainter* painter, const QRect& rect,
|
||||
|
||||
qDebug() << " --- doPaint: in paintSliderIndicator: " <<rect;
|
||||
|
||||
painter->setBrush(Qt::green);
|
||||
QRect barRect = rect.adjusted( 0, 5, 0, -5 );
|
||||
painter->drawRoundedRect(barRect, 2, 2);
|
||||
|
||||
|
||||
/*
|
||||
// Mini Progress Bar: der Gesamtbereich
|
||||
@@ -155,6 +154,12 @@ void BCValueSlider::paintSliderIndicator2(QPainter* painter, const QRect& rect,
|
||||
painter->drawRoundedRect(barRect, 2, 2);
|
||||
*/
|
||||
|
||||
BCValueSlider::updateEditorRect( rect );
|
||||
painter->setBrush(Qt::gray);
|
||||
painter->drawRoundedRect(rect, 2, 2);
|
||||
|
||||
painter->setBrush(Qt::blue);
|
||||
painter->drawRoundedRect(barRect, 2, 2);
|
||||
|
||||
painter->restore();
|
||||
}
|
||||
@@ -208,9 +213,7 @@ QRect BCValueSlider::BCValueSliderStyle::subControlRect(ComplexControl cc, const
|
||||
int pixelRange = rect.width() - handleSize;
|
||||
int pixelPos = (range != 0) ? (pos * pixelRange) / range : 0;
|
||||
|
||||
return QRect(rect.x() + pixelPos,
|
||||
rect.center().y() - handleSize / 2,
|
||||
handleSize, handleSize);
|
||||
return QRect(rect.x() + pixelPos, rect.center().y() - handleSize / 2, handleSize, handleSize);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user