Use float formatter for duration column in event browser

This commit is contained in:
baldurk
2017-10-27 12:23:06 +01:00
parent 62260a6404
commit 6b230d8de0
+2 -2
View File
@@ -311,7 +311,7 @@ void EventBrowser::SetDrawcallTimes(RDTreeWidgetItem *node,
else if(m_TimeUnit == TimeUnit::Nanoseconds)
secs *= 1000000000.0;
node->setText(COL_DURATION, duration < 0.0f ? QString() : QString::number(secs));
node->setText(COL_DURATION, duration < 0.0f ? QString() : Formatter::Format(secs));
EventItemTag tag = node->tag().value<EventItemTag>();
tag.duration = duration;
node->setTag(QVariant::fromValue(tag));
@@ -338,7 +338,7 @@ void EventBrowser::SetDrawcallTimes(RDTreeWidgetItem *node,
else if(m_TimeUnit == TimeUnit::Nanoseconds)
secs *= 1000000000.0;
node->setText(COL_DURATION, duration < 0.0f ? QString() : QString::number(secs));
node->setText(COL_DURATION, duration < 0.0f ? QString() : Formatter::Format(secs));
EventItemTag tag = node->tag().value<EventItemTag>();
tag.duration = duration;
node->setTag(QVariant::fromValue(tag));