File indexing completed on 2024-05-12 16:02:09
0001 /* This file is part of the KDE project 0002 * SPDX-FileCopyrightText: 2007 Jan Hambrecht <jaham@gmx.net> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 #ifndef KOLINESTYLEITEMDELEGATE_H 0007 #define KOLINESTYLEITEMDELEGATE_H 0008 0009 #include <QAbstractItemDelegate> 0010 0011 /// The line style item delegate for rendering the styles 0012 class KoLineStyleItemDelegate : public QAbstractItemDelegate 0013 { 0014 public: 0015 explicit KoLineStyleItemDelegate(QObject *parent = 0); 0016 ~KoLineStyleItemDelegate() override {} 0017 void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override; 0018 QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override; 0019 }; 0020 0021 #endif