CycloBranch
cHTMLDelegate.h
Go to the documentation of this file.
1
7#ifndef _CHTMLDELEGATE_H
8#define _CHTMLDELEGATE_H
9
10#include <QApplication>
11#include <QString>
12#include <QVariant>
13#include <QStyledItemDelegate>
14#include <QPainter>
15#include <QModelIndex>
16#include <QEvent>
17#include <QAbstractItemModel>
18#include <QCheckBox>
19#include <QMouseEvent>
20#include <QTextDocument>
21
22
26class cHTMLDelegate : public QStyledItemDelegate {
27
28 Q_OBJECT
29
30public:
31
32
37 cHTMLDelegate(QObject* parent = (QObject *)0);
38
39
46 void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const;
47
48
49 //QSize sizeHint (const QStyleOptionViewItem& option, const QModelIndex& index) const;
50
51
52};
53
54
55#endif
56
A delegate to display rich text.
Definition: cHTMLDelegate.h:26
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
Reimplementation of paint.
Definition: cHTMLDelegate.cpp:8
cHTMLDelegate(QObject *parent=(QObject *) 0)
The constructor.
Definition: cHTMLDelegate.cpp:4