diff options
Diffstat (limited to 'tests/auto/qicon')
-rw-r--r-- | tests/auto/qicon/qicon.pro | 7 | ||||
-rw-r--r-- | tests/auto/qicon/tst_qicon.cpp | 7 |
2 files changed, 11 insertions, 3 deletions
diff --git a/tests/auto/qicon/qicon.pro b/tests/auto/qicon/qicon.pro index c8d77e8..982bc5a 100644 --- a/tests/auto/qicon/qicon.pro +++ b/tests/auto/qicon/qicon.pro @@ -11,6 +11,13 @@ wince*:{ DEPLOYMENT += addFiles DEPLOYMENT_PLUGIN += qsvg DEFINES += SRCDIR=\\\".\\\" +} else:symbian* { + QT += xml svg + addFiles.sources = *.png *.tga *.svg *.svgz + addFiles.path = . + plugins.sources = qsvgicon.dll + plugins.path = iconengines + DEPLOYMENT += addFiles plugins } else { DEFINES += SRCDIR=\\\"$$PWD\\\" } diff --git a/tests/auto/qicon/tst_qicon.cpp b/tests/auto/qicon/tst_qicon.cpp index a266c16..5ca1501 100644 --- a/tests/auto/qicon/tst_qicon.cpp +++ b/tests/auto/qicon/tst_qicon.cpp @@ -43,6 +43,10 @@ #include <QtTest/QtTest> #include <qicon.h> + +#if defined(Q_OS_SYMBIAN) +#define SRCDIR "." +#endif #include <qiconengine.h> Q_DECLARE_METATYPE(QSize) @@ -124,7 +128,6 @@ void tst_QIcon::actualSize_data() QTest::newRow("resource10") << ":/rect.png" << QSize( 25, 50) << QSize( 20, 40); const QString prefix = QLatin1String(SRCDIR) + QLatin1String("/"); - QTest::newRow("external0") << prefix + "image.png" << QSize(128, 128) << QSize(128, 128); QTest::newRow("external1") << prefix + "image.png" << QSize( 64, 64) << QSize( 64, 64); QTest::newRow("external2") << prefix + "image.png" << QSize( 32, 64) << QSize( 32, 32); @@ -179,7 +182,6 @@ void tst_QIcon::actualSize2_data() void tst_QIcon::actualSize2() { QIcon icon; - const QString prefix = QLatin1String(SRCDIR) + QLatin1String("/"); icon.addPixmap(QPixmap(prefix + "image.png")); @@ -238,7 +240,6 @@ void tst_QIcon::isNull() { QVERIFY(!iconNoFileSuffix.actualSize(QSize(32, 32)).isValid()); const QString prefix = QLatin1String(SRCDIR) + QLatin1String("/"); - // test string constructor with existing file but unsupported format QIcon iconUnsupportedFormat = QIcon(prefix + "image.tga"); QVERIFY(!iconUnsupportedFormat.isNull()); |