File indexing completed on 2024-04-28 15:51:46
0001 /* 0002 SPDX-FileCopyrightText: 2006 Pino Toscano <pino@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef PAGEITEMDELEGATE_H 0008 #define PAGEITEMDELEGATE_H 0009 0010 #include <QItemDelegate> 0011 0012 class PageItemDelegate : public QItemDelegate 0013 { 0014 Q_OBJECT 0015 0016 public: 0017 explicit PageItemDelegate(QObject *parent = nullptr); 0018 ~PageItemDelegate() override; 0019 0020 void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override; 0021 0022 protected: 0023 void drawDisplay(QPainter *painter, const QStyleOptionViewItem &option, const QRect &rect, const QString &text) const override; 0024 0025 private: 0026 class Private; 0027 Private *const d; 0028 }; 0029 0030 #endif