From 6b230d8de0a5a6bc471ea7bb5ba091fc7f6b2274 Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 27 Oct 2017 12:23:06 +0100 Subject: [PATCH] Use float formatter for duration column in event browser --- qrenderdoc/Windows/EventBrowser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qrenderdoc/Windows/EventBrowser.cpp b/qrenderdoc/Windows/EventBrowser.cpp index b0d33df99..3fc34697e 100644 --- a/qrenderdoc/Windows/EventBrowser.cpp +++ b/qrenderdoc/Windows/EventBrowser.cpp @@ -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(); 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(); tag.duration = duration; node->setTag(QVariant::fromValue(tag));