Krita Source Code Documentation
Loading...
Searching...
No Matches
KisNativeGestureSelector.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
8
16
18{
19 const int index = findData(static_cast<int>(gestureAction));
20 if (index >= 0) {
21 setCurrentIndex(index);
22 }
23}
24
KisShortcutConfiguration::NativeGestureAction nativeGesture()
void setNativeGesture(KisShortcutConfiguration::NativeGestureAction gestureAction)
static QString nativeGestureToText(NativeGestureAction action)
@ TouchpadScroll
Two-dimensional pixel scrolling on a touchpad, supported on MacOS and Wayland only.
@ SmartZoomGesture
Smart zoom gesture, typically a double tap that is a boolean zoom/unzoom.
@ PinchGesture
Pinch gesture, a two finger gesture used for navigating the canvas.