if (!m_richText.isEmpty())
return m_richText;
- m_richText = QString::fromLatin1("<span style=\"font-weight:bold\">%1</span>(").arg(name);
+ m_richText = QString::fromLatin1("%1) <span style=\"font-weight:bold\">%2</span>(")
+ .arg(index)
+ .arg(name);
for (int i = 0; i < argNames.count(); ++i) {
m_richText += argNames[i];
m_richText += QString::fromLatin1(" = ");
if (itm->type() == ApiTraceEvent::Call) {
ApiTraceCall *call = static_cast<ApiTraceCall*>(itm);
if (call->state().isEmpty())
- return QString::fromLatin1("<b>%1</b>").arg(call->name);
+ return QString::fromLatin1("%1) <b>%2</b>")
+ .arg(call->index)
+ .arg(call->name);
else
- return QString::fromLatin1("<b>%1</b><br/>%2")
+ return QString::fromLatin1("%1) <b>%2</b><br/>%3")
+ .arg(call->index)
.arg(call->name)
.arg(stateText);
} else {