mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-02 14:14:10 +00:00
4cd6bfd30e
Move a few files from part/ to gui/ since they are also used by the mobile/ frontend
31 lines
677 B
C++
31 lines
677 B
C++
/*
|
|
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
|