From f36619d24bc1a2b1e9bef6b4fac7d5d9a1916b7c Mon Sep 17 00:00:00 2001 From: Warwick Allison Date: Thu, 8 Oct 2009 14:04:31 +1000 Subject: Fix (properly) test image saving. --- tools/qmlviewer/qfxtester.cpp | 5 +++-- 1 file 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"; -- cgit v0.12