Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_input_type_delegate.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 KISINPUTTYPEDELEGATE_H
9#define KISINPUTTYPEDELEGATE_H
10
11#include <QStyledItemDelegate>
12
16class KisInputTypeDelegate : public QStyledItemDelegate
17{
18 Q_OBJECT
19public:
20 explicit KisInputTypeDelegate(QObject *parent = 0);
21 ~KisInputTypeDelegate() override;
22
23 QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &, const QModelIndex &) const override;
24 void setEditorData(QWidget *editor, const QModelIndex &index) const override;
25 void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override;
26 void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &) const override;
27
28private:
29 class Private;
30 Private *const d;
31};
32
33#endif // KISINPUTTYPEDELEGATE_H
A delegate providing editors for the type property of KisShortcutConfiguration.
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &) const override
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &, const QModelIndex &) const override
void setEditorData(QWidget *editor, const QModelIndex &index) const override
KisInputTypeDelegate(QObject *parent=0)