Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_key_input_editor.h
Go to the documentation of this file.
1/*
2 * This file is part of the KDE project
3 * SPDX-FileCopyrightText: 2013 Arjen Hiemstra <ahiemstra@heimr.nl>
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 */
7
8#ifndef KISKEYINPUTEDITOR_H
9#define KISKEYINPUTEDITOR_H
10
11#include <QPushButton>
12
13namespace Ui
14{
16}
17
21class KisKeyInputEditor : public QPushButton
22{
23 Q_OBJECT
24public:
25 KisKeyInputEditor(QWidget *parent = nullptr);
26 ~KisKeyInputEditor() override;
27
28 QList<Qt::Key> keys() const;
29 void setKeys(const QList<Qt::Key> &newKeys);
30
31 Qt::MouseButtons buttons() const;
32 void setButtons(Qt::MouseButtons newButtons);
33
34private Q_SLOTS:
35 void updateLabel();
36
37private:
38 class Private;
39 Private *const d {nullptr};
40};
41
42#endif // KISKEYINPUTEDITOR_H
An editor widget for a list of keys.
KisKeyInputEditor(QWidget *parent=nullptr)
void setButtons(Qt::MouseButtons newButtons)
QList< Qt::Key > keys() const
Qt::MouseButtons buttons() const
void setKeys(const QList< Qt::Key > &newKeys)