Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_mouse_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 KISMOUSEINPUTEDITOR_H
9#define KISMOUSEINPUTEDITOR_H
10
11#include <QPushButton>
12
13namespace Ui
14{
16}
17
21class KisMouseInputEditor : public QPushButton
22{
23 Q_OBJECT
24public:
25 KisMouseInputEditor(QWidget *parent = nullptr);
26 ~KisMouseInputEditor() 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 // KISMOUSEINPUTEDITOR_H
An editor widget for mouse buttons with modifiers.
Qt::MouseButtons buttons() const
QList< Qt::Key > keys() const
void setButtons(Qt::MouseButtons newButtons)
KisMouseInputEditor(QWidget *parent=nullptr)
void setKeys(const QList< Qt::Key > &newKeys)