Commit a1e19d20 authored by Fabian Vogt's avatar Fabian Vogt
Browse files

Properly draw horizontal progress bars again

Some styles only look at state & Qt::State_Horizontal meanwhile.
parent f2af4abf
Pipeline #222549 passed with stage
in 7 minutes and 42 seconds
......@@ -377,7 +377,7 @@ void TransfersViewDelegate::paint(QPainter * painter, const QStyleOptionViewItem
// Set up a QStyleOptionProgressBar to precisely mimic the
// environment of a progress bar.
QStyleOptionProgressBar progressBarOption;
progressBarOption.state = QStyle::State_Enabled;
progressBarOption.state = QStyle::State_Enabled | QStyle::State_Horizontal;
progressBarOption.direction = QApplication::layoutDirection();
progressBarOption.rect = option.rect;
progressBarOption.fontMetrics = QApplication::fontMetrics();
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