File indexing completed on 2024-04-21 05:31:00

0001 /*
0002     SPDX-FileCopyrightText: 2021 Michail Vourlakos <mvourlakos@gmail.com>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 #ifndef SINGLETEXTDELEGATE_H
0007 #define SINGLETEXTDELEGATE_H
0008 
0009 // Qt
0010 #include <QPainter>
0011 #include <QStyledItemDelegate>
0012 
0013 class QModelIndex;
0014 class QWidget;
0015 class QVariant;
0016 
0017 namespace Latte {
0018 namespace Settings {
0019 namespace View {
0020 namespace Delegate {
0021 
0022 class SingleText : public QStyledItemDelegate
0023 {
0024     Q_OBJECT
0025 
0026 public:
0027     SingleText(QObject *parent);
0028     void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
0029 };
0030 
0031 }
0032 }
0033 }
0034 }
0035 
0036 #endif