QFETCH(QByteArray, format);
QBENCHMARK {
- QImageReader io(QLatin1String("images/") + fileName, format);
+ QImageReader io(QLatin1String(SRCDIR "/images/") + fileName, format);
QImage image = io.read();
QVERIFY(!image.isNull());
}
QFETCH(QByteArray, format);
QBENCHMARK {
- QImageReader reader(QLatin1String("images/") + fileName, format);
+ QImageReader reader(QLatin1String(SRCDIR "/images/") + fileName, format);
reader.setScaledSize(newSize);
QImage image = reader.read();
QCOMPARE(image.size(), newSize);
QFETCH(QByteArray, format);
QBENCHMARK {
- QImageReader reader(QLatin1String("images/") + fileName, format);
+ QImageReader reader(QLatin1String(SRCDIR "/images/") + fileName, format);
reader.setClipRect(newRect);
QImage image = reader.read();
QCOMPARE(image.rect(), newRect);
QFETCH(QByteArray, format);
QBENCHMARK {
- QImageReader reader(QLatin1String("images/") + fileName, format);
+ QImageReader reader(QLatin1String(SRCDIR "/images/") + fileName, format);
reader.setScaledSize(QSize(300, 300));
reader.setScaledClipRect(newRect);
QImage image = reader.read();