Fix overflow in rounding code
Summary:
qRound works with int.
BUG: 397008
Test Plan: add unit tests
Reviewers: cfeck, safaalfulaij
Reviewed By: cfeck, safaalfulaij
Subscribers: kde-frameworks-devel
Tags: Frameworks
Differential Revision: https://phabricator.kde.org/D14565