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++
Disable pan native gesture on Qt5
Dmitry Kazakov20fcfc4fadc8
diff --git a/libs/ui/input/KisCanvasNavigationActionStrategyNativeGesture.cpp b/libs/ui/input/KisCanvasNavigationActionStrategyNativeGesture.cppindex e0430da150..10279db261 100644--- a/libs/ui/input/KisCanvasNavigationActionStrategyNativeGesture.cpp+++ b/libs/ui/input/KisCanvasNavigationActionStrategyNativeGesture.cpp@@ -92,6 +92,7 @@ void KisCanvasNavigationActionStrategyNativeGesture::inputEvent(QEvent *event)}}if (gevent->gestureType() == Qt::PanNativeGesture && m_flags.testFlag(PanEnabled)) {+#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)KisCanvasController *controller = static_cast<KisCanvasController *>(m_canvas->canvasController());m_accumulatedPan += gevent->delta();@@ -107,5 +108,6 @@ void KisCanvasNavigationActionStrategyNativeGesture::inputEvent(QEvent *event)// could also take that into accountm_actionStillPoint.second += canvasOffset;controller->pan(-canvasOffset);+#endif}}\ No newline at end of file