diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-11-04 05:49:26 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-11-04 05:49:26 (GMT) |
commit | 48ea5a5c74620f9811debc6bf1e49bf095d30722 (patch) | |
tree | 645d554886311b0faf4b0f7a743fd70b9ef61cfe /tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp | |
parent | e87f1cfec926aab2336063729d21059ebc9767e5 (diff) | |
download | Qt-48ea5a5c74620f9811debc6bf1e49bf095d30722.zip Qt-48ea5a5c74620f9811debc6bf1e49bf095d30722.tar.gz Qt-48ea5a5c74620f9811debc6bf1e49bf095d30722.tar.bz2 |
tests
Diffstat (limited to 'tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp')
-rw-r--r-- | tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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)); } |