File indexing completed on 2024-05-05 04:38:03

0001 /*
0002     SPDX-FileCopyrightText: 2007 Andreas Pakulat <apaku@gmx.de>
0003     SPDX-FileCopyrightText: 2012 Morten Danielsen Volden <mvolden2@gmail.com>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #ifndef KDEVPLATFORM_OUTPUTDELEGATE_H
0009 #define KDEVPLATFORM_OUTPUTDELEGATE_H
0010 
0011 #include "outputviewexport.h"
0012 
0013 #include <QItemDelegate>
0014 
0015 namespace KDevelop
0016 {
0017 class OutputDelegatePrivate;
0018 
0019 class KDEVPLATFORMOUTPUTVIEW_EXPORT OutputDelegate : public QItemDelegate
0020 {
0021     Q_OBJECT
0022 public:
0023     explicit OutputDelegate( QObject* parent = nullptr );
0024     ~OutputDelegate() override;
0025     void paint( QPainter*, const QStyleOptionViewItem&, const QModelIndex& ) const override;
0026     QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const override;
0027 
0028 private:
0029     const QScopedPointer<class OutputDelegatePrivate> d_ptr;
0030     Q_DECLARE_PRIVATE(OutputDelegate)
0031 };
0032 
0033 }
0034 #endif
0035