summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2017-01-05 09:12:10 +0100
committerMarc Mutz <marc.mutz@kdab.com>2017-01-07 08:19:38 +0000
commit3f996edbb69a575267a4ff816f09510f14729149 (patch)
treead0e2f276aabe15cc341f9b8be0df5f2565cb3f8 /src/gui
parenta3d0983f5909c37205cf0bdd4c4eba15d26d58c9 (diff)
QPixmapStyle: do not assume minimum == 0 when painting progress bars
The arithmetic used to calculate the size of the progress bar fill in QPixmapStyle assumed minimum == 0, but that does not necessarily hold, since the minimum value is user-defined. So, fix the arithmetic to take the minimum into account, taking care, as done elsewhere, to avoid signed integer and qreal=float overflows, by using qint64 and double, respectively. [ChangeLog][QtWidgets][QPixmapStyle] Now handles progress bars with minimum != 0 correctly. Change-Id: I738ded56e8234716c36a5e9fde15bae691c43a35 Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'src/gui')
0 files changed, 0 insertions, 0 deletions