Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
KGet
Commits
a1e19d20
Commit
a1e19d20
authored
Aug 23, 2022
by
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
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
ui/transfersviewdelegate.cpp
View file @
a1e19d20
...
...
@@ -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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment