Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_single_action_shortcut.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2012 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KIS_SINGLE_ACTION_SHORTCUT_H
8#define __KIS_SINGLE_ACTION_SHORTCUT_H
9
11
18class KRITAUI_EXPORT KisSingleActionShortcut : public KisAbstractShortcut
19{
20public:
28
30 ~KisSingleActionShortcut() override;
31
32 int priority() const override;
33
34 void setKey(const QSet<Qt::Key> &modifiers, Qt::Key key);
35 void setWheel(const QSet<Qt::Key> &modifiers, WheelAction wheelAction);
36
37 bool match(const QSet<Qt::Key> &modifiers, Qt::Key key);
38 bool match(const QSet<Qt::Key> &modifiers, WheelAction wheelAction);
39
43 bool conflictsWith(const QKeySequence &seq);
44
45private:
46 class Private;
47 Private * const m_d;
48};
49
50#endif /* __KIS_SINGLE_ACTION_SHORTCUT_H */
Abstract base class for input actions.
virtual int priority() const =0
@ WheelDown
Mouse wheel moves down.
@ WheelTrackpad
A pan movement on a trackpad.
@ WheelRight
Mouse wheel moves right.
@ WheelLeft
Mouse wheel moves left.