Krita Source Code Documentation
Loading...
Searching...
No Matches
KoLineStyleItemDelegate_p.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2007 Jan Hambrecht <jaham@gmx.net>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6#ifndef KOLINESTYLEITEMDELEGATE_H
7#define KOLINESTYLEITEMDELEGATE_H
8
9#include <QAbstractItemDelegate>
10
12class KoLineStyleItemDelegate : public QAbstractItemDelegate
13{
14public:
15 explicit KoLineStyleItemDelegate(QObject *parent = 0);
17 void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
18 QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override;
19};
20
21#endif
The line style item delegate for rendering the styles.
KoLineStyleItemDelegate(QObject *parent=0)
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override