forked from qt-creator/qt-creator
Timeline: Move printTime() into Timeline and add hours, minutes, nanos
We should use it for all time printing instead of duplicating the code everywhere. Change-Id: I530baa31fd7044aefce6201fec0ab27c99a61a1d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -27,6 +27,8 @@
|
||||
#include "qmlprofilermodelmanager.h"
|
||||
#include "qmlprofilereventtypes.h"
|
||||
|
||||
#include <timeline/timelineformattime.h>
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QDebug>
|
||||
|
||||
@@ -122,7 +124,7 @@ QVariantMap SceneGraphTimelineModel::details(int index) const
|
||||
|
||||
result.insert(QLatin1String("displayName"), tr(threadLabel(stage)));
|
||||
result.insert(tr("Stage"), tr(StageLabels[stage]));
|
||||
result.insert(tr("Duration"), QmlProfilerDataModel::formatTime(duration(index)));
|
||||
result.insert(tr("Duration"), Timeline::formatTime(duration(index)));
|
||||
|
||||
const int glyphCount = m_data[index].glyphCount;
|
||||
if (glyphCount >= 0)
|
||||
|
||||
Reference in New Issue
Block a user