| 1319 | } |
| 1320 | |
| 1321 | QSize RichTextViewDelegate::sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const |
| 1322 | { |
| 1323 | if(index.isValid()) |
| 1324 | { |
| 1325 | QVariant v = index.data(); |
| 1326 | |
| 1327 | if(RichResourceTextCheck(v)) |
| 1328 | return QSize( |
| 1329 | RichResourceTextWidthHint(m_widget, option.font, v), |
| 1330 | qMax(RichResourceTextHeightHint(m_widget, option.font, v), option.fontMetrics.height())); |
| 1331 | } |
| 1332 | |
| 1333 | return ForwardingDelegate::sizeHint(option, index); |
| 1334 | } |
| 1335 | |
| 1336 | bool RichTextViewDelegate::editorEvent(QEvent *event, QAbstractItemModel *model, |
| 1337 | const QStyleOptionViewItem &option, const QModelIndex &index) |
nothing calls this directly
no test coverage detected