18 #include <QWheelEvent>
21 : QTableView( parent )
28 if ( event->modifiers() & Qt::ShiftModifier )
31 const QPoint invertedPixelDelta = QPoint( event->pixelDelta().y(), event->pixelDelta().x() );
32 const QPoint invertedAngleDelta = QPoint( event->angleDelta().y(), event->angleDelta().x() );
33 QWheelEvent axisSwappedScrollEvent( event->posF(), event->globalPosF(),
34 invertedPixelDelta, invertedAngleDelta,
35 event->buttons(), event->modifiers() & ~Qt::ShiftModifier, event->phase(),
36 event->inverted(), event->source() );
37 QTableView::wheelEvent( &axisSwappedScrollEvent );
41 QTableView::wheelEvent( event );