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() );
34 QWheelEvent axisSwappedScrollEvent( event->position(), event->position(),
35 invertedPixelDelta, invertedAngleDelta,
36 event->buttons(), event->modifiers() & ~Qt::ShiftModifier, event->phase(),
37 event->inverted(), event->source() );
38 QTableView::wheelEvent( &axisSwappedScrollEvent );
42 QTableView::wheelEvent( event );
QgsTableView(QWidget *parent=nullptr)
Constructor for QgsTableView.
void wheelEvent(QWheelEvent *event) override