aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsapi/qjsvalue_p.h
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2016-08-05 10:02:52 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2016-08-08 12:45:38 +0000
commit3e5152be4100cbe649d252bb5d95dc98be5df2f0 (patch)
tree6c81cd4eb1def724c564547755f87c987b04e353 /src/qml/jsapi/qjsvalue_p.h
parentf9f4f1cbda1b4ac19819f21dc3af33f0b7ebf071 (diff)
QJSValue: Adapt to introduction of QMetaType::Nullptr
[ChangeLog][QtQml][Important Behavior Changes] A JS null value converted to a QVariant now has type QMetaType::Nullptr rather than QMetaType::VoidStar. Change-Id: I91a64e444ada0f1884fe807f9973348ba1a878ff Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsapi/qjsvalue_p.h')
-rw-r--r--src/qml/jsapi/qjsvalue_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/jsapi/qjsvalue_p.h b/src/qml/jsapi/qjsvalue_p.h
index 25afd9275c..c4761ad6ea 100644
--- a/src/qml/jsapi/qjsvalue_p.h
+++ b/src/qml/jsapi/qjsvalue_p.h
@@ -132,6 +132,7 @@ public:
case QMetaType::Void:
*v = QV4::Encode::undefined();
break;
+ case QMetaType::Nullptr:
case QMetaType::VoidStar:
*v = QV4::Encode::null();
break;