mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Added a HTML Displayable Delegate
Added a HTML delegate to show rendered HTML on print. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
345b01750a
commit
774a785a99
2 changed files with 35 additions and 0 deletions
|
@ -110,4 +110,10 @@ private:
|
|||
double step;
|
||||
};
|
||||
|
||||
class HTMLDelegate : public ProfilePrintDelegate {
|
||||
Q_OBJECT
|
||||
public:
|
||||
virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
||||
virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
||||
};
|
||||
#endif // MODELDELEGATES_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue