Warning, file /graphics/krita/libs/ui/input/config/kis_wheel_input_editor.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 * This file is part of the KDE project 0003 * SPDX-FileCopyrightText: 2013 Arjen Hiemstra <ahiemstra@heimr.nl> 0004 * 0005 * SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #ifndef KISWHEELINPUTEDITOR_H 0009 #define KISWHEELINPUTEDITOR_H 0010 0011 #include <QPushButton> 0012 0013 #include "input/kis_shortcut_configuration.h" 0014 0015 namespace Ui 0016 { 0017 class KisWheelInputEditor; 0018 } 0019 0020 /** 0021 * \brief An editor widget for mouse wheel input with modifiers. 0022 */ 0023 class KisWheelInputEditor : public QPushButton 0024 { 0025 Q_OBJECT 0026 public: 0027 KisWheelInputEditor(QWidget *parent = nullptr); 0028 ~KisWheelInputEditor() override; 0029 0030 QList<Qt::Key> keys() const; 0031 void setKeys(const QList<Qt::Key> &newKeys); 0032 0033 KisShortcutConfiguration::MouseWheelMovement wheel() const; 0034 void setWheel(KisShortcutConfiguration::MouseWheelMovement newWheel); 0035 0036 private Q_SLOTS: 0037 void updateLabel(); 0038 0039 private: 0040 class Private; 0041 Private *const d {nullptr}; 0042 }; 0043 0044 #endif // KISWHEELINPUTEDITOR_H