cutter/src/widgets/BoolToggleDelegate.h

21 lines
597 B
C
Raw Normal View History

#ifndef BOOLTOGGGLEDELEGATE_H
#define BOOLTOGGGLEDELEGATE_H
#include "core/CutterCommon.h"
#include <QStyledItemDelegate>
class CUTTER_EXPORT BoolTogggleDelegate : public QStyledItemDelegate
{
public:
BoolTogggleDelegate(QObject *parent = nullptr);
2021-01-24 14:50:13 +00:00
QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option,
const QModelIndex &index) const override;
bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option,
const QModelIndex &index) override;
};
#endif // BOOLTOGGGLEDELEGATE_H