Line | |
---|
1 | #ifndef FACT_HtmlDelegate
|
---|
2 | #define FACT_HtmlDelegate
|
---|
3 |
|
---|
4 | #include <QtGui/QStyledItemDelegate>
|
---|
5 |
|
---|
6 | using namespace std;
|
---|
7 |
|
---|
8 | class HtmlDelegate : public QStyledItemDelegate
|
---|
9 | {
|
---|
10 | Q_OBJECT;
|
---|
11 |
|
---|
12 | public:
|
---|
13 | HtmlDelegate(QObject *p=0) : QStyledItemDelegate(p)
|
---|
14 | {
|
---|
15 | }
|
---|
16 |
|
---|
17 | void paint(QPainter *painter,
|
---|
18 | const QStyleOptionViewItem &option,
|
---|
19 | const QModelIndex &index) const;
|
---|
20 |
|
---|
21 | QSize sizeHint(const QStyleOptionViewItem &option,
|
---|
22 | const QModelIndex &index) const;
|
---|
23 | };
|
---|
24 |
|
---|
25 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.