QListView: propagate the source of wheel events
Change-Id: I3ff5dd1f7e02a8a6a0610d71707c26fd5ea74650 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>bb10
parent
6a85b950a4
commit
db22609642
|
|
@ -812,7 +812,7 @@ void QListView::wheelEvent(QWheelEvent *e)
|
|||
QPoint pixelDelta(e->pixelDelta().y(), e->pixelDelta().x());
|
||||
QPoint angleDelta(e->angleDelta().y(), e->angleDelta().x());
|
||||
QWheelEvent hwe(e->pos(), e->globalPos(), pixelDelta, angleDelta, e->delta(),
|
||||
Qt::Horizontal, e->buttons(), e->modifiers(), e->phase());
|
||||
Qt::Horizontal, e->buttons(), e->modifiers(), e->phase(), e->source());
|
||||
if (e->spontaneous())
|
||||
qt_sendSpontaneousEvent(d->hbar, &hwe);
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue