diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-07-17 20:10:44 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-18 10:14:27 -0700 |
commit | 774a785a99c8ec2910c346de0ad40eb65f1948f6 (patch) | |
tree | 5fdd61a65151d872bfb2e3ab8c62ff3f3dd8bda8 /qt-ui/modeldelegates.h | |
parent | 345b01750a83229a331c91bdebb1cdf7730fdac1 (diff) | |
download | subsurface-774a785a99c8ec2910c346de0ad40eb65f1948f6.tar.gz |
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>
Diffstat (limited to 'qt-ui/modeldelegates.h')
-rw-r--r-- | qt-ui/modeldelegates.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-ui/modeldelegates.h b/qt-ui/modeldelegates.h index bb9854eb5..88ea3f159 100644 --- a/qt-ui/modeldelegates.h +++ b/qt-ui/modeldelegates.h @@ -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 |