diff options
Diffstat (limited to 'src/widgets/kernel/qapplication.cpp')
-rw-r--r-- | src/widgets/kernel/qapplication.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/widgets/kernel/qapplication.cpp b/src/widgets/kernel/qapplication.cpp index 70ec46ed32..3d2554dd32 100644 --- a/src/widgets/kernel/qapplication.cpp +++ b/src/widgets/kernel/qapplication.cpp @@ -2979,6 +2979,9 @@ bool QApplication::notify(QObject *receiver, QEvent *e) we.setTimestamp(wheel->timestamp()); bool eventAccepted; do { + // events are delivered as accepted and ignored by the default event handler + // since we always send the same QWheelEvent object, we need to reset the accepted state + we.setAccepted(true); we.m_spont = wheel->spontaneous() && w == receiver; res = d->notify_helper(w, &we); eventAccepted = we.isAccepted(); |