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++
/*
* SPDX-FileCopyrightText: 2017 Bernhard Liebl <[email protected]>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*
*/
#ifndef KISNATIVEGESTURESHORTCUT_H
#define KISNATIVEGESTURESHORTCUT_H
#include "kis_abstract_shortcut.h"
class QNativeGestureEvent;
class KisNativeGestureShortcut : public KisAbstractShortcut
{
public:
enum Type {
PinchNavigation,
SmartZoomNativeGesture
};
public:
KisNativeGestureShortcut(KisAbstractInputAction* action, int index, Type type);
~KisNativeGestureShortcut() override;
int priority() const override;
bool match(QNativeGestureEvent* event);
private:
class Private;
Private * const d {nullptr};
};
#endif // KISNATIVEGESTURESHORTCUT_H