Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_input_mode_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 KISINPUTMODEDELEGATE_H
9#define KISINPUTMODEDELEGATE_H
10
11#include <QStyledItemDelegate>
12
17class KisInputModeDelegate : public QStyledItemDelegate
18{
19 Q_OBJECT
20public:
21 explicit KisInputModeDelegate(QObject *parent = nullptr);
22 ~KisInputModeDelegate() override;
23
24 QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &, const QModelIndex &) const override;
25 void setEditorData(QWidget *editor, const QModelIndex &index) const override;
26 void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override;
27 void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &) const override;
28
30
31private:
32 class Private;
33 Private *const d {nullptr};
34};
35
36#endif // KISINPUTMODEDELEGATE_H
Abstract base class for input actions.
A delegate providing editors for the mode property of KisShortcutConfiguration.
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override
void setAction(KisAbstractInputAction *action)
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &) const override
KisInputModeDelegate(QObject *parent=nullptr)
void setEditorData(QWidget *editor, const QModelIndex &index) const override
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &, const QModelIndex &) const override