Account Settings: fix progress being written in white when there are errors

This commit is contained in:
Olivier Goffart 2018-10-17 15:15:11 +02:00
parent 3c068b5058
commit 36ca910d33

View File

@ -264,6 +264,7 @@ void FolderStatusDelegate::paint(QPainter *painter, const QStyleOptionViewItem &
rect.setHeight(texts.count() * subFm.height() + 2 * margin);
rect.setRight(option.rect.right() - margin);
painter->save();
painter->setBrush(color);
painter->setPen(QColor(0xaa, 0xaa, 0xaa));
painter->drawRoundedRect(QStyle::visualRect(option.direction, option.rect, rect),
@ -280,6 +281,7 @@ void FolderStatusDelegate::paint(QPainter *painter, const QStyleOptionViewItem &
subFm.elidedText(eText, Qt::ElideLeft, textRect.width()));
textRect.translate(0, textRect.height());
}
painter->restore();
h = rect.bottom() + margin;
};