压力算法移植前
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#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
|
||||
|
||||
Reference in New Issue
Block a user