QAbstractScrollArea: Remove needless static_cast for QWheelEvent
Change-Id: I9ee3f30b423ddd70cb0c9c496d32a3b9f869fddf Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
parent
df5159a8a6
commit
96678806d6
@ -1315,7 +1315,7 @@ void QAbstractScrollArea::mouseMoveEvent(QMouseEvent *e)
|
||||
void QAbstractScrollArea::wheelEvent(QWheelEvent *e)
|
||||
{
|
||||
Q_D(QAbstractScrollArea);
|
||||
if (static_cast<QWheelEvent*>(e)->orientation() == Qt::Horizontal)
|
||||
if (e->orientation() == Qt::Horizontal)
|
||||
QApplication::sendEvent(d->hbar, e);
|
||||
else
|
||||
QApplication::sendEvent(d->vbar, e);
|
||||
|
Loading…
x
Reference in New Issue
Block a user