You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

30 lines
677 B

/*
SPDX-FileCopyrightText: 2006 Pino Toscano <pino@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef PAGEITEMDELEGATE_H
#define PAGEITEMDELEGATE_H
#include <QItemDelegate>
class PageItemDelegate : public QItemDelegate
{
Q_OBJECT
public:
explicit PageItemDelegate(QObject *parent = nullptr);
~PageItemDelegate() override;
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
protected:
void drawDisplay(QPainter *painter, const QStyleOptionViewItem &option, const QRect &rect, const QString &text) const override;
private:
class Private;
Private *const d;
};
#endif