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:
@@ -24,6 +24,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include "qmlprofileranimationsmodel_test.h"
|
||||
#include <timeline/timelineformattime.h>
|
||||
#include <QtTest>
|
||||
|
||||
namespace QmlProfiler {
|
||||
@@ -127,7 +128,7 @@ void QmlProfilerAnimationsModelTest::testDetails()
|
||||
QVariantMap details = model.details(i);
|
||||
QCOMPARE(details["displayName"].toString(), model.displayName());
|
||||
QCOMPARE(details[QmlProfilerAnimationsModel::tr("Duration")].toString(),
|
||||
QmlProfilerDataModel::formatTime(1));
|
||||
Timeline::formatTime(1));
|
||||
QCOMPARE(details[QmlProfilerAnimationsModel::tr("Framerate")].toString(),
|
||||
QString::fromLatin1("%1 FPS").arg(frameRate(i)));
|
||||
QCOMPARE(details[QmlProfilerAnimationsModel::tr("Animations")].toString(),
|
||||
|
||||
Reference in New Issue
Block a user