File indexing completed on 2025-01-19 11:19:01
0001 /* 0002 SPDX-FileCopyrightText: 2017-2018 Michail Vourlakos <mvourlakos@gmail.com> 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 0006 #ifndef LAYOUTBACKGROUNDDELEGATE_H 0007 #define LAYOUTBACKGROUNDDELEGATE_H 0008 0009 // local 0010 #include "../../../data/layouticondata.h" 0011 0012 // Qt 0013 #include <QStyledItemDelegate> 0014 0015 class QModelIndex; 0016 class QWidget; 0017 0018 namespace Latte { 0019 namespace Settings { 0020 namespace Layout { 0021 namespace Delegate { 0022 0023 class BackgroundDelegate : public QStyledItemDelegate 0024 { 0025 Q_OBJECT 0026 public: 0027 BackgroundDelegate(QObject *parent = 0); 0028 0029 void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override; 0030 0031 }; 0032 0033 } 0034 } 0035 } 0036 } 0037 0038 #endif