mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user