okular/part/pageitemdelegate.h
Albert Astals Cid 4cd6bfd30e mobile: Add Signature Viewing UI
Move a few files from part/ to gui/ since they are also used by the
mobile/ frontend
2022-02-18 08:32:13 +00:00

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