diff options
author | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2014-09-08 16:22:29 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2014-09-23 11:35:30 +0200 |
commit | dfb4af1fd34a163495790a7896acafa56b86a8f1 (patch) | |
tree | 81d6d9a5b941aaa2f69d2fb0c178abcaf51d222f /src/widgets/widgets/qabstractspinbox_p.h | |
parent | e8ef241d0f35704433ba331dee9578190a5c98a6 (diff) |
Fix spin box with fine grained wheel events
Only step the value in the spin box when we have accumulated one wheel
tick worth of wheel delta.
Also fixes the obsolete contructors of QWheelEvent so they set the non
obsolete properties.
Change-Id: Ic6ea4b37afa8eec85a6ca7bdc0d919bf8fb02608
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Diffstat (limited to 'src/widgets/widgets/qabstractspinbox_p.h')
-rw-r--r-- | src/widgets/widgets/qabstractspinbox_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/widgets/qabstractspinbox_p.h b/src/widgets/widgets/qabstractspinbox_p.h index da9f1d9757..055fe92591 100644 --- a/src/widgets/widgets/qabstractspinbox_p.h +++ b/src/widgets/widgets/qabstractspinbox_p.h @@ -151,6 +151,7 @@ public: QAbstractSpinBox::ButtonSymbols buttonSymbols; QSpinBoxValidator *validator; uint showGroupSeparator : 1; + int wheelDeltaRemainder; }; class QSpinBoxValidator : public QValidator |