diff options
Diffstat (limited to 'tests/auto/qicon/tst_qicon.cpp')
-rw-r--r-- | tests/auto/qicon/tst_qicon.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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()); |