Warning, file /graphics/krita/libs/ui/input/config/kis_input_mode_delegate.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 KISINPUTMODEDELEGATE_H 0009 #define KISINPUTMODEDELEGATE_H 0010 0011 #include <QStyledItemDelegate> 0012 0013 class KisAbstractInputAction; 0014 /** 0015 * \brief A delegate providing editors for the mode property of KisShortcutConfiguration. 0016 */ 0017 class KisInputModeDelegate : public QStyledItemDelegate 0018 { 0019 Q_OBJECT 0020 public: 0021 explicit KisInputModeDelegate(QObject *parent = nullptr); 0022 ~KisInputModeDelegate() override; 0023 0024 QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &, const QModelIndex &) const override; 0025 void setEditorData(QWidget *editor, const QModelIndex &index) const override; 0026 void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override; 0027 void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &) const override; 0028 0029 void setAction(KisAbstractInputAction *action); 0030 0031 private: 0032 class Private; 0033 Private *const d {nullptr}; 0034 }; 0035 0036 #endif // KISINPUTMODEDELEGATE_H