Inherit font properly from itemview when painting rich resource links

* This fixes the links not being italic when rendering disabled resources in
  pipeline state view
This commit is contained in:
baldurk
2019-03-05 17:01:27 +00:00
parent 143c75f5a0
commit a893b48aea
+1 -1
View File
@@ -409,7 +409,7 @@ void RichTextViewDelegate::paint(QPainter *painter, const QStyleOptionViewItem &
rect.setX(rect.x() + opt.icon.actualSize(opt.decorationSize, mode, state).width() + 4);
}
RichResourceTextPaint(m_widget, painter, rect, option.font, option.palette,
RichResourceTextPaint(m_widget, painter, rect, opt.font, option.palette,
option.state & QStyle::State_MouseOver,
m_widget->viewport()->mapFromGlobal(QCursor::pos()), v);