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:
27
29 ~KisSingleActionShortcut() override;
30
31 int priority() const override;
32
33 void setKey(const QSet<Qt::Key> &modifiers, Qt::Key key);
34 void setWheel(const QSet<Qt::Key> &modifiers, WheelAction wheelAction);
35
36 bool match(const QSet<Qt::Key> &modifiers, Qt::Key key);
37 bool match(const QSet<Qt::Key> &modifiers, WheelAction wheelAction);
38
42 bool conflictsWith(const QKeySequence &seq);
43
44private:
45 class Private;
46 Private * const m_d;
47};
48
49#endif /* __KIS_SINGLE_ACTION_SHORTCUT_H */
Abstract base class for input actions.
virtual int priority() const =0
@ WheelDown
Mouse wheel moves down.
@ WheelRight
Mouse wheel moves right.
@ WheelLeft
Mouse wheel moves left.