diff options
Diffstat (limited to 'tests/benchmarks/declarative/creation')
-rw-r--r-- | tests/benchmarks/declarative/creation/creation.pro | 9 | ||||
-rw-r--r-- | tests/benchmarks/declarative/creation/tst_creation.cpp | 11 |
2 files changed, 12 insertions, 8 deletions
diff --git a/tests/benchmarks/declarative/creation/creation.pro b/tests/benchmarks/declarative/creation/creation.pro index 08ad772..6540fa2 100644 --- a/tests/benchmarks/declarative/creation/creation.pro +++ b/tests/benchmarks/declarative/creation/creation.pro @@ -6,11 +6,10 @@ macx:CONFIG -= app_bundle SOURCES += tst_creation.cpp -symbian: { - DEFINES += SRCDIR=\".\" - importFiles.sources = data - importFiles.path = - DEPLOYMENT = importFiles +symbian { + data.sources = data + data.path = . + DEPLOYMENT += data } else { DEFINES += SRCDIR=\\\"$$PWD\\\" } diff --git a/tests/benchmarks/declarative/creation/tst_creation.cpp b/tests/benchmarks/declarative/creation/tst_creation.cpp index 6e9197b..1c3332e 100644 --- a/tests/benchmarks/declarative/creation/tst_creation.cpp +++ b/tests/benchmarks/declarative/creation/tst_creation.cpp @@ -50,6 +50,11 @@ #include <QDeclarativeContext> #include <private/qobject_p.h> +#ifdef Q_OS_SYMBIAN +// In Symbian OS test data is located in applications private dir +#define SRCDIR "." +#endif + class tst_creation : public QObject { Q_OBJECT @@ -91,8 +96,8 @@ public: TestType(QObject *parent = 0) : QObject(parent) {} - QDeclarativeListProperty<QObject> resources() { - return QDeclarativeListProperty<QObject>(this, 0, resources_append); + QDeclarativeListProperty<QObject> resources() { + return QDeclarativeListProperty<QObject>(this, 0, resources_append); } static void resources_append(QDeclarativeListProperty<QObject> *p, QObject *o) { @@ -100,7 +105,7 @@ public: } }; -tst_creation::tst_creation() +tst_creation::tst_creation() { qmlRegisterType<TestType>("Qt.test", 1, 0, "TestType"); } |