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++

Add phase logging to Wheel Event logging

Dmitry Kazakovf80db184480b
diff --git a/libs/ui/input/kis_tablet_debugger.cpp b/libs/ui/input/kis_tablet_debugger.cpp
index c3c3380bdd..9e79acd096 100644
--- a/libs/ui/input/kis_tablet_debugger.cpp
+++ b/libs/ui/input/kis_tablet_debugger.cpp
@@ -179,6 +179,11 @@ QString KisTabletDebugger::eventToString(const QWheelEvent &ev, const QString &p
s << "delta: x: " << ev.angleDelta().x() << " y: " << ev.angleDelta().y() << " ";
s << "source: " << sourceToString(ev.source()) << " ";
+
+ QString phaseString;
+ QDebug(&phaseString) << ev.phase();
+ s << "phase: " << phaseString << " ";
+
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
s << "dev. type: " << static_cast<int>(ev.device()->type()) << " ";
s << "dev. caps: " << static_cast<int>(ev.device()->capabilities()) << " ";