aboutsummaryrefslogtreecommitdiffstats
path: root/src/controls
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-04-23 11:57:33 +0200
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-04-23 09:59:03 +0000
commit56cee002bb4521f2db02c77a01e8ef608579bd14 (patch)
tree4975431dc49d1da9614c44b383d59294b4870f24 /src/controls
parenta0949d1280fee1f7d61aba177964be5b60346a38 (diff)
QQuickStackView: fix build
error: no member named 'asString' in 'QV4::Value' Change-Id: If0bb37c59d1533f501677022485fe925a468be7f Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/controls')
-rw-r--r--src/controls/qquickstackview_p.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controls/qquickstackview_p.cpp b/src/controls/qquickstackview_p.cpp
index f887539f..fc152a36 100644
--- a/src/controls/qquickstackview_p.cpp
+++ b/src/controls/qquickstackview_p.cpp
@@ -314,7 +314,7 @@ QQuickStackElement *QQuickStackViewPrivate::findElement(const QV4::Value &value)
QQuickStackElement *QQuickStackViewPrivate::createElement(const QV4::Value &value)
{
Q_Q(QQuickStackView);
- if (QV4::String *s = value.asString())
+ if (const QV4::String *s = value.as<QV4::String>())
return QQuickStackElement::fromString(s->toQString(), q);
if (const QV4::QObjectWrapper *o = value.as<QV4::QObjectWrapper>())
return QQuickStackElement::fromObject(o->object(), q);