diff options
Diffstat (limited to 'examples/script/context2d/environment.cpp')
-rw-r--r-- | examples/script/context2d/environment.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/script/context2d/environment.cpp b/examples/script/context2d/environment.cpp index 53b56fe..3afb759 100644 --- a/examples/script/context2d/environment.cpp +++ b/examples/script/context2d/environment.cpp @@ -506,7 +506,7 @@ QScriptValue Environment::newFakeDomEvent(const QString &type, const QScriptValu e.setProperty("target", target, QScriptValue::ReadOnly); e.setProperty("currentTarget", target, QScriptValue::ReadOnly); e.setProperty("eventPhase", 3); // bubbling - e.setProperty("timeStamp", QDateTime::currentDateTime().toTime_t()); + e.setProperty("timeStamp", static_cast<int>(QDateTime::currentDateTime().toSecsSinceEpoch())); // UIEvent e.setProperty("detail", 0, QScriptValue::ReadOnly); e.setProperty("view", m_engine->globalObject(), QScriptValue::ReadOnly); |