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
3605cc55
Commit
3605cc55
authored
Jan 13, 2016
by
Fabio Bas
Browse files
fix replay progress bar
parent
924bbb22
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/replay_timeline_widget.cpp
View file @
3605cc55
...
@@ -58,7 +58,8 @@ void ReplayTimelineWidget::paintEvent(QPaintEvent * /* event */)
...
@@ -58,7 +58,8 @@ void ReplayTimelineWidget::paintEvent(QPaintEvent * /* event */)
painter
.
fillPath
(
path
,
Qt
::
black
);
painter
.
fillPath
(
path
,
Qt
::
black
);
const
QColor
barColor
=
QColor
::
fromHsv
(
120
,
255
,
255
,
100
);
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
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