mirror of
https://github.com/rizinorg/cutter.git
synced 2025-02-01 00:57:26 +00:00
21 lines
597 B
C++
21 lines
597 B
C++
#ifndef BOOLTOGGGLEDELEGATE_H
|
|
#define BOOLTOGGGLEDELEGATE_H
|
|
|
|
#include "core/CutterCommon.h"
|
|
|
|
#include <QStyledItemDelegate>
|
|
|
|
class CUTTER_EXPORT BoolTogggleDelegate : public QStyledItemDelegate
|
|
{
|
|
public:
|
|
BoolTogggleDelegate(QObject *parent = nullptr);
|
|
|
|
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
|