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