diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-10-08 04:04:31 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-10-08 04:04:31 (GMT) |
commit | f36619d24bc1a2b1e9bef6b4fac7d5d9a1916b7c (patch) | |
tree | 2c0c9d2058db7f8f70f0b39baf57454e95406997 /tools | |
parent | 08a1c212752bd1c1eeda1706c9531ac502441f35 (diff) | |
download | Qt-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.cpp | 5 |
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"; |