File indexing completed on 2024-12-22 04:12:42
0001 /* 0002 * SPDX-FileCopyrightText: 2017 Bernhard Liebl <poke1024@gmx.de> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 * 0006 */ 0007 0008 #ifndef KISNATIVEGESTURESHORTCUT_H 0009 #define KISNATIVEGESTURESHORTCUT_H 0010 0011 #include "kis_abstract_shortcut.h" 0012 0013 class QNativeGestureEvent; 0014 class KisNativeGestureShortcut : public KisAbstractShortcut 0015 { 0016 public: 0017 KisNativeGestureShortcut(KisAbstractInputAction* action, int index, Qt::NativeGestureType type); 0018 ~KisNativeGestureShortcut() override; 0019 0020 int priority() const override; 0021 0022 bool match(QNativeGestureEvent* event); 0023 0024 private: 0025 class Private; 0026 Private * const d {nullptr}; 0027 }; 0028 0029 #endif // KISNATIVEGESTURESHORTCUT_H