summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-10-08 04:04:31 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-10-08 04:04:31 (GMT)
commitf36619d24bc1a2b1e9bef6b4fac7d5d9a1916b7c (patch)
tree2c0c9d2058db7f8f70f0b39baf57454e95406997 /tools
parent08a1c212752bd1c1eeda1706c9531ac502441f35 (diff)
downloadQt-f36619d24bc1a2b1e9bef6b4fac7d5d9a1916b7c.zip
Qt-f36619d24bc1a2b1e9bef6b4fac7d5d9a1916b7c.tar.gz
Qt-f36619d24bc1a2b1e9bef6b4fac7d5d9a1916b7c.tar.bz2
Fix (properly) test image saving.
Diffstat (limited to 'tools')
-rw-r--r--tools/qmlviewer/qfxtester.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/qmlviewer/qfxtester.cpp b/tools/qmlviewer/qfxtester.cpp
index 87ab43b..8005b0e 100644
--- a/tools/qmlviewer/qfxtester.cpp
+++ b/tools/qmlviewer/qfxtester.cpp
@@ -161,8 +161,9 @@ void QFxTester::save()
if (!fe.hash.isEmpty()) {
ts << " hash: \"" << fe.hash.toHex() << "\"\n";
} else if (!fe.image.isNull()) {
- QString filename = filenameInfo.baseName() + "." + QString::number(imgCount++) + ".png";
- fe.image.save(filename);
+ QString filename = filenameInfo.baseName() + "." + QString::number(imgCount) + ".png";
+ fe.image.save(m_script + "." + QString::number(imgCount) + ".png");
+ imgCount++;
ts << " image: \"" << filename << "\"\n";
}
ts << " }\n";