Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

fixup: fix input manager test on Qt6 now

Dmitry Kazakov2d24f3194ae4
diff --git a/libs/ui/tests/kis_input_manager_test.cpp b/libs/ui/tests/kis_input_manager_test.cpp
index 034bd09b00..9894226b81 100644
--- a/libs/ui/tests/kis_input_manager_test.cpp
+++ b/libs/ui/tests/kis_input_manager_test.cpp
@@ -1381,21 +1381,21 @@ void KisInputManagerTest::testTouchOverriddenByTablet()
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QTouchEvent e(QEvent::TouchBegin, &touchDevice, Qt::NoModifier, calcTouchPointStates(touchPoints), touchPoints);
#else
- QTouchEvent e(QEvent::TouchBegin, &device, Qt::NoModifier, touchPoints);
+ QTouchEvent e(QEvent::TouchBegin, &touchDevice, Qt::NoModifier, touchPoints);
#endif
m.touchBeginEvent(&e);
} else if (eventIndex > 0 && eventIndex < eventsCount - 1) {
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QTouchEvent e(QEvent::TouchUpdate, &touchDevice, Qt::NoModifier, calcTouchPointStates(touchPoints), touchPoints);
#else
- QTouchEvent e(QEvent::TouchUpdate, &device, Qt::NoModifier, touchPoints);
+ QTouchEvent e(QEvent::TouchUpdate, &touchDevice, Qt::NoModifier, touchPoints);
#endif
m.touchUpdateEvent(&e);
} else if (eventIndex == eventsCount - 1) {
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QTouchEvent e(QEvent::TouchEnd, &touchDevice, Qt::NoModifier, calcTouchPointStates(touchPoints), touchPoints);
#else
- QTouchEvent e(QEvent::TouchEnd, &device, Qt::NoModifier, touchPoints);
+ QTouchEvent e(QEvent::TouchEnd, &touchDevice, Qt::NoModifier, touchPoints);
#endif
m.touchEndEvent(&e);
} else {