Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_wheel_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 KISWHEELINPUTEDITOR_H
9#define KISWHEELINPUTEDITOR_H
10
11#include <QPushButton>
12
14
15namespace Ui
16{
18}
19
23class KisWheelInputEditor : public QPushButton
24{
25 Q_OBJECT
26public:
27 KisWheelInputEditor(QWidget *parent = nullptr);
28 ~KisWheelInputEditor() override;
29
30 QList<Qt::Key> keys() const;
31 void setKeys(const QList<Qt::Key> &newKeys);
32
35
36private Q_SLOTS:
37 void updateLabel();
38
39private:
40 class Private;
41 Private *const d {nullptr};
42};
43
44#endif // KISWHEELINPUTEDITOR_H
An editor widget for mouse wheel input with modifiers.
void setWheel(KisShortcutConfiguration::MouseWheelMovement newWheel)
KisWheelInputEditor(QWidget *parent=nullptr)
KisShortcutConfiguration::MouseWheelMovement wheel() const
void setKeys(const QList< Qt::Key > &newKeys)
QList< Qt::Key > keys() const