Fixing button locking, part I
This commit is contained in:
@@ -260,19 +260,13 @@ void BCAnimatedDelegate::paintSliderIndicator(QPainter* painter, const QStyleOpt
|
||||
-option.rect.height() / 2 + 2
|
||||
);
|
||||
|
||||
//QRect barRect = option.rect;
|
||||
// Text
|
||||
//painter->setPen(option.state & QStyle::State_Selected ? option.palette.highlightedText().color() : Qt::black);
|
||||
//painter->drawText(textRect, Qt::AlignVCenter | Qt::AlignLeft,
|
||||
// QString::number(value));
|
||||
|
||||
// Mini Progress Bar
|
||||
painter->setPen(Qt::NoPen);
|
||||
painter->setBrush(QColor(0xE0E0E0));
|
||||
painter->drawRoundedRect(barRect, 2, 2);
|
||||
|
||||
QRect fillRect = barRect;
|
||||
fillRect.setWidth(barRect.width() * value / 100);
|
||||
fillRect.setWidth(barRect.width() * valueX.calcRatio() );
|
||||
painter->setBrush(QColor(0x0078D4));
|
||||
painter->drawRoundedRect(fillRect, 2, 2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user