Skip to content

Commit

Permalink
fix gfx tablet buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
sulincix committed Dec 17, 2024
1 parent c18e77a commit 01a3722
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DrawingWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -538,17 +538,17 @@ bool DrawingWidget::event(QEvent *ev) {
}
case QEvent::TabletPress: {
QTabletEvent *tabletEvent = static_cast<QTabletEvent*>(ev);
eventHandler(Qt::RightButton, PRESS, -2, tabletEvent->position(), tabletEvent->pressure());
eventHandler(tabletEvent->buttons(), PRESS, -2, tabletEvent->position(), tabletEvent->pressure());
break;
}
case QEvent::TabletRelease: {
QTabletEvent *tabletEvent = static_cast<QTabletEvent*>(ev);
eventHandler(Qt::RightButton, RELEASE, -2, tabletEvent->position(), tabletEvent->pressure());
eventHandler(tabletEvent->buttons(), RELEASE, -2, tabletEvent->position(), tabletEvent->pressure());
break;
}
case QEvent::TabletMove: {
QTabletEvent *tabletEvent = static_cast<QTabletEvent*>(ev);
eventHandler(Qt::RightButton, MOVE, -2, tabletEvent->position(), tabletEvent->pressure());
eventHandler(tabletEvent->buttons(), MOVE, -2, tabletEvent->position(), tabletEvent->pressure());
break;
}
case QEvent::MouseButtonPress: {
Expand Down

0 comments on commit 01a3722

Please sign in to comment.