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 build on Qt5

Dmitry Kazakovb2463fb2f7b3
diff --git a/libs/ui/input/kis_tablet_debugger.cpp b/libs/ui/input/kis_tablet_debugger.cpp
index 46b107da78..9df1a40842 100644
--- a/libs/ui/input/kis_tablet_debugger.cpp
+++ b/libs/ui/input/kis_tablet_debugger.cpp
@@ -268,8 +268,11 @@ QString KisTabletDebugger::eventToString(const QNativeGestureEvent &ev, const QS
s << gestureTypeToString(ev.gestureType()) << " "
<< "value: " << ev.value() << " "
+#if (QT_VERSION >= QT_VERSION_CHECK(6, 2, 0))
<< "delta: " << ev.delta().x() << "," << ev.delta().y() << " "
- << "fingerCount: " << ev.fingerCount() << " ";
+ << "fingerCount: " << ev.fingerCount() << " "
+#endif
+ ;
return string;
}