File indexing completed on 2024-04-14 05:24:32

0001 /*
0002     SPDX-FileCopyrightText: 2017-2018 Michail Vourlakos <mvourlakos@gmail.com>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 #ifndef CHECKBOXDELEGATE_H
0007 #define CHECKBOXDELEGATE_H
0008 
0009 // Qt
0010 #include <QStyledItemDelegate>
0011 
0012 
0013 namespace Latte {
0014 namespace Settings {
0015 namespace Layout {
0016 namespace Delegate {
0017 
0018 class CheckBox : public QStyledItemDelegate
0019 {
0020 public:
0021     CheckBox(QObject *parent = 0);
0022 
0023     void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
0024     virtual bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) override;
0025 };
0026 
0027 }
0028 }
0029 }
0030 }
0031 
0032 #endif