File indexing completed on 2024-04-28 04:38:53

0001 /*
0002     SPDX-FileCopyrightText: 2007 Andreas Pakulat <apaku@gmx.de>
0003     SPDX-FileCopyrightText: 2010 Julien Desgats <julien.desgats@gmail.com>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #ifndef KDEVPLATFORM_PLUGIN_GREPOUTPUTDELEGATE_H
0009 #define KDEVPLATFORM_PLUGIN_GREPOUTPUTDELEGATE_H
0010 
0011 #include <QStyledItemDelegate>
0012 
0013 class GrepOutputDelegate : public QStyledItemDelegate
0014 {
0015     Q_OBJECT
0016 public:
0017     explicit GrepOutputDelegate(QObject* parent);
0018     ~GrepOutputDelegate() override;
0019 
0020     static GrepOutputDelegate* self();
0021     void paint(QPainter*, const QStyleOptionViewItem&, const QModelIndex&) const override;
0022     QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const override;
0023 private:
0024     static GrepOutputDelegate* m_self;
0025 };
0026 
0027 #endif
0028