aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/quicktemplates2/qquickspinbox.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quicktemplates2/qquickspinbox.cpp b/src/quicktemplates2/qquickspinbox.cpp
index 00a75c10..687ccafd 100644
--- a/src/quicktemplates2/qquickspinbox.cpp
+++ b/src/quicktemplates2/qquickspinbox.cpp
@@ -201,7 +201,7 @@ void QQuickSpinBoxPrivate::updateValue()
QQmlEngine *engine = qmlEngine(q);
if (engine && valueFromText.isCallable()) {
QV4::ExecutionEngine *v4 = QQmlEnginePrivate::getV4Engine(engine);
- QJSValue loc(v4, QQmlLocale::wrap(v4, locale));
+ QJSValue loc = QJSValuePrivate::fromReturnedValue(QQmlLocale::wrap(v4, locale));
val = valueFromText.call(QJSValueList() << text.toString() << loc).toInt();
} else {
val = locale.toInt(text.toString());
@@ -259,7 +259,7 @@ void QQuickSpinBoxPrivate::updateDisplayText()
QQmlEngine *engine = qmlEngine(q);
if (engine && textFromValue.isCallable()) {
QV4::ExecutionEngine *v4 = QQmlEnginePrivate::getV4Engine(engine);
- QJSValue loc(v4, QQmlLocale::wrap(v4, locale));
+ QJSValue loc = QJSValuePrivate::fromReturnedValue(QQmlLocale::wrap(v4, locale));
text = textFromValue.call(QJSValueList() << value << loc).toString();
} else {
text = locale.toString(value);