15 #ifndef BORNAGAIN_GUI_VIEW_TOOL_ITEMDELEGATEFORHTML_H
16 #define BORNAGAIN_GUI_VIEW_TOOL_ITEMDELEGATEFORHTML_H
18 #include <QStyledItemDelegate>
26 const QPoint& globalPos)
const;
29 void paint(QPainter* painter,
const QStyleOptionViewItem& option,
30 const QModelIndex& index)
const override;
31 QSize
sizeHint(
const QStyleOptionViewItem& option,
const QModelIndex& index)
const override;
34 static QSize
sizeHint(
const QString& text);
For representing HTML text in an item */.
ItemDelegateForHTML(QObject *parent)
QString anchorAtGlobalPos(QAbstractItemView *view, const QModelIndex &index, const QPoint &globalPos) const
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override