summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksandar Sasha Babic <aleksandar.babic@nokia.com>2010-02-23 12:58:30 (GMT)
committerAleksandar Sasha Babic <aleksandar.babic@nokia.com>2010-02-23 12:58:30 (GMT)
commit9cf177099bfff8a00297f868b912723ca7b9551f (patch)
tree6dd0047827db5af157dc55e34d0accb61868297a
parentb7dde7fc5df285c919df91daba7f07aef00c11bd (diff)
downloadQt-9cf177099bfff8a00297f868b912723ca7b9551f.zip
Qt-9cf177099bfff8a00297f868b912723ca7b9551f.tar.gz
Qt-9cf177099bfff8a00297f868b912723ca7b9551f.tar.bz2
Fixing deployment on Symbian
Reviewed-by: TrustMe
-rw-r--r--tests/benchmarks/declarative/qmlgraphicsimage/qmlgraphicsimage.pro9
-rw-r--r--tests/benchmarks/declarative/qmlgraphicsimage/tst_qmlgraphicsimage.cpp6
2 files changed, 13 insertions, 2 deletions
diff --git a/tests/benchmarks/declarative/qmlgraphicsimage/qmlgraphicsimage.pro b/tests/benchmarks/declarative/qmlgraphicsimage/qmlgraphicsimage.pro
index 449d874..f14931c 100644
--- a/tests/benchmarks/declarative/qmlgraphicsimage/qmlgraphicsimage.pro
+++ b/tests/benchmarks/declarative/qmlgraphicsimage/qmlgraphicsimage.pro
@@ -7,5 +7,10 @@ CONFIG += release
SOURCES += tst_qmlgraphicsimage.cpp
-DEFINES += SRCDIR=\\\"$$PWD\\\"
-
+symbian* {
+ data.sources = image.png
+ data.path = .
+ DEPLOYMENT += data
+} else {
+ DEFINES += SRCDIR=\\\"$$PWD\\\"
+}
diff --git a/tests/benchmarks/declarative/qmlgraphicsimage/tst_qmlgraphicsimage.cpp b/tests/benchmarks/declarative/qmlgraphicsimage/tst_qmlgraphicsimage.cpp
index 7d7d24e..6d1aa0e 100644
--- a/tests/benchmarks/declarative/qmlgraphicsimage/tst_qmlgraphicsimage.cpp
+++ b/tests/benchmarks/declarative/qmlgraphicsimage/tst_qmlgraphicsimage.cpp
@@ -44,6 +44,12 @@
#include <QmlComponent>
#include <private/qmlgraphicsimage_p.h>
+#ifdef Q_OS_SYMBIAN
+// In Symbian OS test data is located in applications private dir
+// Application private dir is default serach path for files, so SRCDIR can be set to empty
+#define SRCDIR ""
+#endif
+
class tst_qmlgraphicsimage : public QObject
{
Q_OBJECT