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.cppindex 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);#endifm.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);#endifm.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);#endifm.touchEndEvent(&e);} else {