FACT++  1.0
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: