QAbstractScrollArea: Remove needless static_cast for QWheelEvent

Change-Id: I9ee3f30b423ddd70cb0c9c496d32a3b9f869fddf
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
Alexander Volkov 2016-04-05 13:33:08 +03:00 committed by Marc Mutz
parent df5159a8a6
commit 96678806d6

View File

@ -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);