FACT++
1.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
void HtmlDelegate::paint
(
QPainter *
painter
,
const QStyleOptionViewItem &
option
,
const QModelIndex &
index
)
const
Definition at line
13
of file
HtmlDelegate.cc
.
Referenced by
HtmlDelegate()
.
14
{
15
QTextDocument doc;
16
doc.setPageSize(option.rect.size());
17
doc.setHtml(index.data().toString());
18
19
// === This can be used if a scrolling is needed ===
20
// painter->save();
21
// painter->translate(option.rect.topLeft());
22
// QRect r(QPoint(0, 0), option.rect.size());
23
// doc.drawContents(painter, r);
24
// painter->restore();
25
// drawFocus(painter, option, option.rect);
26
27
doc.drawContents(painter, option.rect);
28
}
Here is the caller graph for this function:
HtmlDelegate
Generated on Sun Sep 18 2016 20:50:52 for FACT++ by
1.8.11