Commit 00c04e8e authored by Attila Török's avatar Attila Török
Browse files

Paint the background of the PERCENTAGE column

parent e076cef9
......@@ -315,6 +315,12 @@ void ViewDelegate::hideExtender(bt::TorrentInterface *tc)
void ViewDelegate::paintProgressBar(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
// first filling the background as if it was an empty cell
QStyleOptionViewItem dummyOption = option;
dummyOption.text = QLatin1String("");
dummyOption.index = QModelIndex();
QStyledItemDelegate::paint(painter, dummyOption, QModelIndex());
int progress =;
QStyleOptionProgressBar progressBarOption;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment