summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/declarative
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-03-12 05:53:21 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-03-12 05:53:21 (GMT)
commitfeeda1e9febc1131fd8ed30633c9c5db7806b4fb (patch)
tree1cbb02c1fa8b7f61825f7ce9fca5fe8e3bbed286 /tests/benchmarks/declarative
parente16cc0cf7e50a63674a7e36169d0844af6ddb2ce (diff)
downloadQt-feeda1e9febc1131fd8ed30633c9c5db7806b4fb.zip
Qt-feeda1e9febc1131fd8ed30633c9c5db7806b4fb.tar.gz
Qt-feeda1e9febc1131fd8ed30633c9c5db7806b4fb.tar.bz2
Tweak benchmark
Diffstat (limited to 'tests/benchmarks/declarative')
-rw-r--r--tests/benchmarks/declarative/creation/tst_creation.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/benchmarks/declarative/creation/tst_creation.cpp b/tests/benchmarks/declarative/creation/tst_creation.cpp
index 47e4bb7..cd69cfe 100644
--- a/tests/benchmarks/declarative/creation/tst_creation.cpp
+++ b/tests/benchmarks/declarative/creation/tst_creation.cpp
@@ -104,7 +104,8 @@ void tst_creation::qobject_cpp()
void tst_creation::qobject_qml()
{
- QDeclarativeComponent component(&engine, TEST_FILE("qobject.qml"));
+ QDeclarativeComponent component(&engine);
+ component.setData("import Qt 4.6\nQtObject {}", QUrl());
QObject *obj = component.create();
delete obj;