Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
KTorrent
Commits
00c04e8e
Commit
00c04e8e
authored
Aug 03, 2021
by
Attila Török
Browse files
Paint the background of the PERCENTAGE column
parent
e076cef9
Changes
1
Hide whitespace changes
Inline
Side-by-side
ktorrent/view/viewdelegate.cpp
View file @
00c04e8e
...
...
@@ -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
=
index
.
data
().
toInt
();
QStyleOptionProgressBar
progressBarOption
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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