Fix color bar painting failures in statistics main window

Authored by hriesenbeck on Feb 7 2018, 5:08 PM.

Description

Fix color bar painting failures in statistics main window

Summary:
Some color bars of the bar chart in LessonStatisticsView are not drawn
to its full length. The reason are rounding errors in bar segment length
calculation. To fix this, all integer values were replaced by floating
point variables.

Furthermore sometimes the border line between two bar segments was not
drawn when constructed with QPainterPath. The relevant QPainterPath
operation were replaced by direct drawing operations to the QPainter
object.

BUG: 389998

Reviewers: KDE Edu, tcanabrava

Reviewed By: KDE Edu, tcanabrava

Subscribers: kde-edu, tcanabrava

Tags: KDE Edu

Differential Revision: https://phabricator.kde.org/D10367

Details

Committed
hriesenbeckNov 15 2018, 7:30 PM
Reviewer
KDE Edu
Differential Revision
D10367: Fix color bar painting failures in statistics main window
Parents
R340:008cc8e3cd7d: GIT_SILENT made messages (after extraction)
Branches
Unknown
Tags
Unknown