summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-01-11 08:00:14 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-01-11 08:00:14 (GMT)
commit2e3fea996697b89d869eaed4c2c5996fb3a6f503 (patch)
tree2c7acbb9b0c70113d654410a942b6a1953cd26f8
parent092b4469b1e54c47d3baa615b9d1df5ed10bb10b (diff)
parent468027128f8019f8e49293ce561736e73e8785a0 (diff)
downloadQt-2e3fea996697b89d869eaed4c2c5996fb3a6f503.zip
Qt-2e3fea996697b89d869eaed4c2c5996fb3a6f503.tar.gz
Qt-2e3fea996697b89d869eaed4c2c5996fb3a6f503.tar.bz2
Merge branch 'kinetic-declarativeui' of scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
-rw-r--r--tests/auto/declarative/anchors/tst_anchors.cpp1
-rw-r--r--tests/auto/declarative/qmllanguage/testtypes.cpp8
-rw-r--r--tests/auto/declarative/qmllanguage/testtypes.h9
3 files changed, 11 insertions, 7 deletions
diff --git a/tests/auto/declarative/anchors/tst_anchors.cpp b/tests/auto/declarative/anchors/tst_anchors.cpp
index 90a90fe..4a51861 100644
--- a/tests/auto/declarative/anchors/tst_anchors.cpp
+++ b/tests/auto/declarative/anchors/tst_anchors.cpp
@@ -375,6 +375,7 @@ void tst_anchors::crash1()
QString expect = "QML Text (" + view->url().toString() + ":4:5" + ") Possible anchor loop detected on fill.";
QTest::ignoreMessage(QtWarningMsg, expect.toLatin1());
+ QTest::ignoreMessage(QtWarningMsg, expect.toLatin1()); // XXX ideally, should be one message
view->execute();
qApp->processEvents();
diff --git a/tests/auto/declarative/qmllanguage/testtypes.cpp b/tests/auto/declarative/qmllanguage/testtypes.cpp
index 933431d..f30f47e 100644
--- a/tests/auto/declarative/qmllanguage/testtypes.cpp
+++ b/tests/auto/declarative/qmllanguage/testtypes.cpp
@@ -49,3 +49,11 @@ QML_DEFINE_TYPE(Test,1,0,MyDotPropertyObject,MyDotPropertyObject);
QML_DEFINE_TYPE(Test,1,0,MyNamespacedType,MyNamespace::MyNamespacedType);
QML_DEFINE_TYPE(Test,1,0,MySecondNamespacedType,MyNamespace::MySecondNamespacedType);
QML_DEFINE_NOCREATE_TYPE(MyGroupedObject);
+
+QVariant myCustomVariantTypeConverter(const QString &data)
+{
+ MyCustomVariantType rv;
+ rv.a = data.toInt();
+ return QVariant::fromValue(rv);
+}
+
diff --git a/tests/auto/declarative/qmllanguage/testtypes.h b/tests/auto/declarative/qmllanguage/testtypes.h
index 3598d68..0f2cdf9 100644
--- a/tests/auto/declarative/qmllanguage/testtypes.h
+++ b/tests/auto/declarative/qmllanguage/testtypes.h
@@ -53,6 +53,8 @@
#include <QtDeclarative/qmlpropertyvaluesource.h>
#include <QtDeclarative/qmlscriptstring.h>
+QVariant myCustomVariantTypeConverter(const QString &data);
+
class MyInterface
{
public:
@@ -69,13 +71,6 @@ struct MyCustomVariantType
};
Q_DECLARE_METATYPE(MyCustomVariantType);
-static QVariant myCustomVariantTypeConverter(const QString &data)
-{
- MyCustomVariantType rv;
- rv.a = data.toInt();
- return QVariant::fromValue(rv);
-}
-
class MyAttachedObject : public QObject
{
Q_OBJECT