File indexing completed on 2025-02-02 08:57:59
0001 /* 0002 SPDX-FileCopyrightText: 2021 Michail Vourlakos <mvourlakos@gmail.com> 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 0006 #ifndef NAMEDELEGATE_H 0007 #define NAMEDELEGATE_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 NameDelegate : public QStyledItemDelegate 0023 { 0024 Q_OBJECT 0025 0026 public: 0027 NameDelegate(QObject *parent); 0028 void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override; 0029 void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override; 0030 }; 0031 0032 } 0033 } 0034 } 0035 } 0036 0037 #endif