24 lines
531 B
Plaintext
24 lines
531 B
Plaintext
#ifndef HTMLDELEGATE_H
|
|
#define HTMLDELEGATE_H
|
|
|
|
#include <QAbstractItemDelegate>
|
|
#include <QWidget>
|
|
#include <QPainter>
|
|
#include <QTextDocument>
|
|
|
|
class HtmlDelegate : public QAbstractItemDelegate
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit HtmlDelegate(QObject *parent = 0);
|
|
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
|
|
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override;
|
|
|
|
signals:
|
|
|
|
public slots:
|
|
};
|
|
|
|
#endif // HTMLDELEGATE_H
|
|
|