summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmllanguage
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-11-04 05:49:26 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-11-04 05:49:26 (GMT)
commit48ea5a5c74620f9811debc6bf1e49bf095d30722 (patch)
tree645d554886311b0faf4b0f7a743fd70b9ef61cfe /tests/auto/declarative/qmllanguage
parente87f1cfec926aab2336063729d21059ebc9767e5 (diff)
downloadQt-48ea5a5c74620f9811debc6bf1e49bf095d30722.zip
Qt-48ea5a5c74620f9811debc6bf1e49bf095d30722.tar.gz
Qt-48ea5a5c74620f9811debc6bf1e49bf095d30722.tar.bz2
tests
Diffstat (limited to 'tests/auto/declarative/qmllanguage')
-rw-r--r--tests/auto/declarative/qmllanguage/qmllanguage.pro1
-rw-r--r--tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp5
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/declarative/qmllanguage/qmllanguage.pro b/tests/auto/declarative/qmllanguage/qmllanguage.pro
index 80228a9..e45d73a 100644
--- a/tests/auto/declarative/qmllanguage/qmllanguage.pro
+++ b/tests/auto/declarative/qmllanguage/qmllanguage.pro
@@ -1,5 +1,6 @@
load(qttest_p4)
contains(QT_CONFIG,declarative): QT += declarative
+QT += script
macx:CONFIG -= app_bundle
SOURCES += tst_qmllanguage.cpp \
diff --git a/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp b/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp
index 8e0dd3e..c82aa4d 100644
--- a/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp
+++ b/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp
@@ -45,6 +45,7 @@
#include <QtCore/qdebug.h>
#include <QtCore/qfileinfo.h>
#include <QtCore/qdir.h>
+#include <private/qmlmetaproperty_p.h>
#include "testtypes.h"
#include "../../../shared/util.h"
@@ -638,9 +639,9 @@ void tst_qmllanguage::valueTypes()
p.write(13);
QCOMPARE(p.read(), QVariant(13));
- quint32 r = p.save();
+ quint32 r = QmlMetaPropertyPrivate::saveValueType(p.coreIndex(), p.valueTypeCoreIndex());
QmlMetaProperty p2;
- p2.restore(r, object);
+ QmlMetaPropertyPrivate::restore(p2, r, object);
QCOMPARE(p2.read(), QVariant(13));
}