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 debug of native gestrues in KisShortcutMatcher
Dmitry Kazakova477156834b1
diff --git a/libs/ui/input/kis_shortcut_matcher.cpp b/libs/ui/input/kis_shortcut_matcher.cppindex 1d112dfc31..dcd8b7e7db 100644--- a/libs/ui/input/kis_shortcut_matcher.cpp+++ b/libs/ui/input/kis_shortcut_matcher.cpp@@ -1368,6 +1368,9 @@ bool KisShortcutMatcher::tryRunNativeGestureShortcut(QNativeGestureEvent* event)m_d->nativeGestureShortcut = goodCandidate;Private::RecursionGuard guard(this);++ DEBUG_SHORTCUT("starting", goodCandidate)+goodCandidate->action()->activate(goodCandidate->shortcutIndex());goodCandidate->action()->begin(goodCandidate->shortcutIndex(), event);@@ -1391,6 +1394,8 @@ bool KisShortcutMatcher::tryEndNativeGestureShortcut(QNativeGestureEvent* event)// first reset running shortcut to avoid infinite recursion via end()KisNativeGestureShortcut *nativeGestureShortcut = m_d->nativeGestureShortcut;+ DEBUG_SHORTCUT("ending", nativeGestureShortcut)+nativeGestureShortcut->action()->end(event);nativeGestureShortcut->action()->deactivate(m_d->nativeGestureShortcut->shortcutIndex());