Skip to content

Commit

Permalink
fix slow keypad widget clicking
Browse files Browse the repository at this point in the history
  • Loading branch information
mateoconlechuga committed Oct 7, 2024
1 parent 5a2a8b3 commit 5e05adb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gui/qt/keypad/keypadwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ void KeypadWidget::mouseEvent(QMouseEvent *event) {
return;
}
switch (event->type()) {
case QEvent::MouseButtonDblClick:
case QEvent::MouseButtonPress:
case QEvent::MouseMove:
mouseUpdate(event->localPos());

Check warning on line 414 in gui/qt/keypad/keypadwidget.cpp

View workflow job for this annotation

GitHub Actions / Build: ubuntu-20.04 - Qt6-Dynamic

‘QPointF QMouseEvent::localPos() const’ is deprecated: Use position() [-Wdeprecated-declarations]

Check warning on line 414 in gui/qt/keypad/keypadwidget.cpp

View workflow job for this annotation

GitHub Actions / Build: ubuntu-20.04 - Qt6

‘QPointF QMouseEvent::localPos() const’ is deprecated: Use position() [-Wdeprecated-declarations]
Expand Down Expand Up @@ -513,6 +514,7 @@ void KeypadWidget::touchEvent(QTouchEvent *event) {

bool KeypadWidget::event(QEvent *event) {
switch (event->type()) {
case QEvent::MouseButtonDblClick:
case QEvent::MouseButtonPress:
case QEvent::MouseMove:
case QEvent::MouseButtonRelease:
Expand Down

0 comments on commit 5e05adb

Please sign in to comment.