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.
Details
Details
- Reviewers
davidedmundson vkrause - Group Reviewers
Frameworks - Commits
- R275:13a039441fdb: KNumberModel: gracefully handle a stepSize of 0
Diff Detail
Diff Detail
- Repository
- R275 KItemModels
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.