Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
0318ae80
Commit
0318ae80
authored
Jan 15, 2016
by
ctrlaltca
Browse files
Merge pull request #1758 from ctrlaltca/replay_overflow
fix replay progress bar
parents
fc59a33b
3605cc55
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/replay_timeline_widget.cpp
View file @
0318ae80
...
...
@@ -58,7 +58,8 @@ void ReplayTimelineWidget::paintEvent(QPaintEvent * /* event */)
painter
.
fillPath
(
path
,
Qt
::
black
);
const
QColor
barColor
=
QColor
::
fromHsv
(
120
,
255
,
255
,
100
);
painter
.
fillRect
(
0
,
0
,
(
width
()
-
1
)
*
currentTime
/
maxTime
,
height
()
-
1
,
barColor
);
quint64
w
=
(
quint64
)(
width
()
-
1
)
*
(
quint64
)
currentTime
/
maxTime
;
painter
.
fillRect
(
0
,
0
,
w
,
height
()
-
1
,
barColor
);
}
QSize
ReplayTimelineWidget
::
sizeHint
()
const
...
...
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