/* SPDX-FileCopyrightText: 2021 Michail Vourlakos SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef SCREENSCHECKBOXDELEGATE_H #define SCREENSCHECKBOXDELEGATE_H // Qt #include namespace Latte { namespace Settings { namespace Screens { namespace Delegate { class CheckBox : public QStyledItemDelegate { public: CheckBox(QObject *parent = 0); void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override; virtual bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) override; }; } } } } #endif