summaryrefslogtreecommitdiffstats
path: root/tools/qmlviewer/main.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-09-24 04:13:15 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-09-24 04:18:58 (GMT)
commita1c1ff8561e8aefe4b4d09af1273bcb98c192772 (patch)
tree822b629abfce43ca3a068c3850a138f529f2180c /tools/qmlviewer/main.cpp
parent09b117a97edd0791fb2c30f7a73704c926327ba3 (diff)
downloadQt-a1c1ff8561e8aefe4b4d09af1273bcb98c192772.zip
Qt-a1c1ff8561e8aefe4b4d09af1273bcb98c192772.tar.gz
Qt-a1c1ff8561e8aefe4b4d09af1273bcb98c192772.tar.bz2
Update visual autotests and visual autotest infrastructure
Diffstat (limited to 'tools/qmlviewer/main.cpp')
-rw-r--r--tools/qmlviewer/main.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/qmlviewer/main.cpp b/tools/qmlviewer/main.cpp
index 7df1179..98a5d3a 100644
--- a/tools/qmlviewer/main.cpp
+++ b/tools/qmlviewer/main.cpp
@@ -60,8 +60,9 @@ void scriptOptsUsage()
qWarning(" testimages ............................... compare images on playback");
qWarning(" exitoncomplete ........................... cleanly exit the viewer on script completion");
qWarning(" exitonfailure ............................ immediately exit the viewer on script failure");
+ qWarning(" saveonexit ............................... save recording on viewer exit");
qWarning(" ");
- qWarning(" One of record or play must be specified.");
+ qWarning(" One of record, play or both must be specified.");
exit(1);
}
@@ -190,10 +191,8 @@ int main(int argc, char ** argv)
if (option == QLatin1String("help")) {
scriptOptsUsage();
} else if (option == QLatin1String("play")) {
- if (scriptOptions & QmlViewer::Record) scriptOptsUsage();
scriptOptions |= QmlViewer::Play;
} else if (option == QLatin1String("record")) {
- if (scriptOptions & QmlViewer::Play) scriptOptsUsage();
scriptOptions |= QmlViewer::Record;
} else if (option == QLatin1String("testimages")) {
scriptOptions |= QmlViewer::TestImages;
@@ -201,6 +200,8 @@ int main(int argc, char ** argv)
scriptOptions |= QmlViewer::ExitOnComplete;
} else if (option == QLatin1String("exitonfailure")) {
scriptOptions |= QmlViewer::ExitOnFailure;
+ } else if (option == QLatin1String("saveonexit")) {
+ scriptOptions |= QmlViewer::SaveOnExit;
} else {
scriptOptsUsage();
}