diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2016-06-21 14:36:55 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2016-06-22 15:55:00 +0000 |
commit | b90f810ffa5a7f98b0ac58e5812bcdcd66d028bc (patch) | |
tree | bdda206cc8936f4a8f97a0d93dda2bc0e623a471 /src/quick/items/context2d/qquickcanvasitem.cpp | |
parent | cb6c208c77e2e3c8b6d5957fae73f0326eee4296 (diff) |
Use QDateTime::currentMSecsSinceEpoch() instead of currentDateTime
More efficient if all you want is the number of seconds.
Change-Id: Ib57b52598e2f452985e9fffd145a36f2b3c703ea
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'src/quick/items/context2d/qquickcanvasitem.cpp')
-rw-r--r-- | src/quick/items/context2d/qquickcanvasitem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/items/context2d/qquickcanvasitem.cpp b/src/quick/items/context2d/qquickcanvasitem.cpp index b3b5144eb3..89a68e4f33 100644 --- a/src/quick/items/context2d/qquickcanvasitem.cpp +++ b/src/quick/items/context2d/qquickcanvasitem.cpp @@ -711,7 +711,7 @@ void QQuickCanvasItem::updatePolish() for (auto it = animationCallbacks.cbegin(), end = animationCallbacks.cend(); it != end; ++it) { QV4::ScopedFunctionObject f(scope, it.value().value()); - callData->args[0] = QV4::Primitive::fromUInt32(QDateTime::currentDateTimeUtc().toTime_t()); + callData->args[0] = QV4::Primitive::fromUInt32(QDateTime::currentMSecsSinceEpoch() / 1000); f->call(callData); } } |