Optimise RichResourceText to special-case for single ResourceId text

* Most cases don't have other text together with a ResourceId, so handle an
  isolated ResourceId specially and manually render it.
* Further work - we could cache the name the same way as the RichResourceText
  does. So far it doesn't seem to appear on profiling.
This commit is contained in:
baldurk
2019-03-27 17:59:29 +00:00
parent a44b85bd76
commit 3d2fa8cd3e
5 changed files with 217 additions and 51 deletions
+1 -1
View File
@@ -342,7 +342,7 @@ void RDTableView::mouseMoveEvent(QMouseEvent *e)
update(newHover);
if(m_delegate && m_delegate->linkHover(e, newHover))
if(m_delegate && m_delegate->linkHover(e, font(), newHover))
{
setCursor(QCursor(Qt::PointingHandCursor));
}