Fix copy-paste of rich resource text

* We need to cache to the QString text on demand, which requires a context
  potentially sooner than paint/etc time.
This commit is contained in:
baldurk
2020-12-02 17:44:46 +00:00
parent 1b9cd082bd
commit 9610919c16
8 changed files with 15 additions and 11 deletions
+1 -1
View File
@@ -359,7 +359,7 @@ QPair<uint32_t, uint32_t> EventBrowser::AddDrawcalls(RDTreeWidgetItem *parent,
QVariant name = QString(d.name);
RichResourceTextInitialise(name);
RichResourceTextInitialise(name, &m_Ctx);
RDTreeWidgetItem *child = new RDTreeWidgetItem(
{name, QString::number(d.eventId), QString::number(d.drawcallId), lit("---")});