| 1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
|---|---|
| 2 | // |
| 3 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 4 | |
| 5 | #ifndef PROJECTDELEGATE_H |
| 6 | #define PROJECTDELEGATE_H |
| 7 | |
| 8 | #include <QStyledItemDelegate> |
| 9 | |
| 10 | class SymbolDelegatePrivate; |
| 11 | class SymbolDelegate : public QStyledItemDelegate |
| 12 | { |
| 13 | Q_OBJECT |
| 14 | SymbolDelegatePrivate *const d; |
| 15 | public: |
| 16 | explicit SymbolDelegate(QObject *parent = nullptr); |
| 17 | void setActiveProject(const QModelIndex &root); |
| 18 | protected: |
| 19 | void paint(QPainter *painter, |
| 20 | const QStyleOptionViewItem &option, |
| 21 | const QModelIndex &index) const override; |
| 22 | }; |
| 23 | |
| 24 | #endif // PROJECTDELEGATE_H |
| 25 |