KNumberModel: gracefully handle a stepSize of 0
Summary:
While setting a stepSize of 0 is undefined in the API docs, Qt widgets with
similar step properties gracefully handle also a value of 0.
The current Q_ASSERT only catches any 0 value in respective debug builds,
but would result in crashing applications in normal builds at runtime due to
the divide-by-zero.
Reviewers: Frameworks, davidedmundson, vkrause
Reviewed By: davidedmundson
Subscribers: kde-frameworks-devel
Tags: Frameworks
Differential Revision: https://phabricator.kde.org/D25364