diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-10-08 03:55:39 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-10-08 03:55:39 (GMT) |
commit | 28c8570d38fe1a5f57300a48668506a6235a9081 (patch) | |
tree | 48f86b44fec2b8afc2ee7ebe61fe021120ca98f2 /tools/qmlviewer | |
parent | dd2f8a3224abff4f6528a23c821c44cbbf282073 (diff) | |
download | Qt-28c8570d38fe1a5f57300a48668506a6235a9081.zip Qt-28c8570d38fe1a5f57300a48668506a6235a9081.tar.gz Qt-28c8570d38fe1a5f57300a48668506a6235a9081.tar.bz2 |
Fix relative-URLs of test scripts
Diffstat (limited to 'tools/qmlviewer')
-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 a6a46eb..87ab43b 100644 --- a/tools/qmlviewer/qfxtester.cpp +++ b/tools/qmlviewer/qfxtester.cpp @@ -140,7 +140,8 @@ void QFxTester::run() void QFxTester::save() { QString filename = m_script + QLatin1String(".qml"); - QDir saveDir = QFileInfo(filename).absoluteDir(); + QFileInfo filenameInfo(filename); + QDir saveDir = filenameInfo.absoluteDir(); saveDir.mkpath("."); QFile file(filename); @@ -160,7 +161,7 @@ void QFxTester::save() if (!fe.hash.isEmpty()) { ts << " hash: \"" << fe.hash.toHex() << "\"\n"; } else if (!fe.image.isNull()) { - QString filename = m_script + "." + QString::number(imgCount++) + ".png"; + QString filename = filenameInfo.baseName() + "." + QString::number(imgCount++) + ".png"; fe.image.save(filename); ts << " image: \"" << filename << "\"\n"; } |