FACT++  1.0
QSize HtmlDelegate::sizeHint ( const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const

Definition at line 30 of file HtmlDelegate.cc.

Referenced by HtmlDelegate().

31 {
32  QTextDocument doc;
33  doc.setPageSize(option.rect.size());
34  doc.setHtml(index.data().toString());
35  return doc.size().toSize();
36 }

+ Here is the caller graph for this function: