File indexing completed on 2024-05-26 07:55:47

0001 /*
0002     SPDX-FileCopyrightText: 2010-2012 Alejandro Fiestas Olivares <afiestas@kde.org>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef PLAYGROUNDDELEGATE_H
0008 #define PLAYGROUNDDELEGATE_H
0009 
0010 #include <QAbstractItemDelegate>
0011 #include <QAbstractItemView>
0012 
0013 class PlaygroundDelegate : public QAbstractItemDelegate
0014 {
0015   public:
0016     explicit PlaygroundDelegate(QObject *parent = nullptr);
0017   private:
0018     QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const override;
0019     void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const override;
0020 };
0021 
0022 #endif // PLAYGROUNDDELEGATE_H