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