Krita Source Code Documentation
Loading...
Searching...
No Matches
kshortcutwidget.h
Go to the documentation of this file.
1/* This file is part of the KDE libraries
2 SPDX-FileCopyrightText: 2007 Andreas Hartmetz <ahartmetz@gmail.com>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6#ifndef KSHORTCUTWIDGET_H
7#define KSHORTCUTWIDGET_H
8
9#include <kritawidgetutils_export.h>
10
11#include <QKeySequence>
12#include <QList>
13#include <QWidget>
14
17
21class KRITAWIDGETUTILS_EXPORT KisKShortcutWidget : public QWidget
22{
23 Q_OBJECT
24 Q_PROPERTY(bool modifierlessAllowed READ isModifierlessAllowed WRITE setModifierlessAllowed)
25public:
26 KisKShortcutWidget(QWidget *parent = 0);
27 ~KisKShortcutWidget() override;
28
29 void setModifierlessAllowed(bool allow);
30 bool isModifierlessAllowed();
31
32 void setClearButtonsShown(bool show);
33
34 QList<QKeySequence> shortcut() const;
35
49 void setCheckActionCollections(const QList<KisKActionCollection *> &actionCollections);
50
51Q_SIGNALS:
53
54public Q_SLOTS:
55 void setShortcut(const QList<QKeySequence> &cut);
56 void clearShortcut();
57
65 void applyStealShortcut();
66
67private:
68 Q_PRIVATE_SLOT(d, void priKeySequenceChanged(const QKeySequence &))
69 Q_PRIVATE_SLOT(d, void altKeySequenceChanged(const QKeySequence &))
70
71private:
74};
75
76#endif //KSHORTCUTWIDGET_H
A container for a set of QAction objects.
void shortcutChanged(const QList< QKeySequence > &cut)
KisKShortcutWidgetPrivate *const d