Skip to content

Commit d2eecdf

Browse files
committed
Merge branch '2.5' into '2.6'
2 parents 189a0ff + 4ef19f8 commit d2eecdf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/widget/wwidget.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ bool WWidget::event(QEvent* e) {
4949
static_cast<int>(fonti.pixelSize() * m_scaleFactor));
5050
}
5151
} else if (isEnabled()) {
52+
// With Qt6 on Windows this touch -> mouse translation is apparently not
53+
// required anymore, QMouseEvents are received correctly.
54+
// If enabled we receive both QTouch and QMouse events, see
55+
// https://github.com/mixxxdj/mixxx/issues/15546
56+
// TODO Test with other OS, maybe we can drop it entirely.
57+
#ifndef __WINDOWS__
5258
switch(e->type()) {
5359
case QEvent::TouchBegin:
5460
case QEvent::TouchUpdate:
@@ -114,6 +120,7 @@ bool WWidget::event(QEvent* e) {
114120
default:
115121
break;
116122
}
123+
#endif
117124
}
118125

119126
return QWidget::event(e);

0 commit comments

Comments
 (0)