File indexing completed on 2024-04-28 05:50:17

0001 /*
0002     SPDX-FileCopyrightText: 2022 Dmitrii Fomchenkov <fomchenkovda@basealt.ru>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 #ifndef CUSTOMSTYLEDITEMDELEGATE_H
0007 #define CUSTOMSTYLEDITEMDELEGATE_H
0008 
0009 #include <QStyledItemDelegate>
0010 
0011 class CustomStyledItemDelegate : public QStyledItemDelegate {
0012     Q_OBJECT
0013 public:
0014     explicit CustomStyledItemDelegate(QWidget *parent = nullptr)
0015         : QStyledItemDelegate(parent) {}
0016     ~CustomStyledItemDelegate() override = default;
0017 
0018     void paint(QPainter *painter, const QStyleOptionViewItem &option,
0019                const QModelIndex &index) const override;
0020 };
0021 
0022 #endif // CUSTOMSTYLEDITEMDELEGATE_H