From 774a785a99c8ec2910c346de0ad40eb65f1948f6 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 17 Jul 2014 20:10:44 -0300 Subject: Added a HTML Displayable Delegate Added a HTML delegate to show rendered HTML on print. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/modeldelegates.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'qt-ui/modeldelegates.h') 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 -- cgit v1.2.3-70-g09d2