diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-05-12 02:48:02 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-05-12 02:48:02 (GMT) |
commit | 779c414bb96ab501e839261a4e9f2c94b9d21aa9 (patch) | |
tree | b3e63cd5509ebc45f1650a5aa7dff4f9d3417538 /tools/qmlviewer/main.cpp | |
parent | 7a3557acf5e0a9570e7e7e033a096eef5ca87055 (diff) | |
download | Qt-779c414bb96ab501e839261a4e9f2c94b9d21aa9.zip Qt-779c414bb96ab501e839261a4e9f2c94b9d21aa9.tar.gz Qt-779c414bb96ab501e839261a4e9f2c94b9d21aa9.tar.bz2 |
Allow extra video recording args on cmdline.
Diffstat (limited to 'tools/qmlviewer/main.cpp')
-rw-r--r-- | tools/qmlviewer/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/qmlviewer/main.cpp b/tools/qmlviewer/main.cpp index 9a008d2..f5a80b0 100644 --- a/tools/qmlviewer/main.cpp +++ b/tools/qmlviewer/main.cpp @@ -32,6 +32,7 @@ void usage() qWarning(" - 'ffmpeg' for other formats"); qWarning(" -recorddither ordered|threshold|floyd .... set GIF dither recording mode"); qWarning(" -recordperiod <milliseconds> ............. set time between recording frames"); + qWarning(" -record arg .............................. add a recording process argument"); qWarning(" -autorecord [from-]<tomilliseconds> ...... set recording to start and stop"); qWarning(" -devicekeys .............................. use numeric keys (see F1)"); qWarning(" -cache ................................... disk cache remote content"); @@ -76,6 +77,7 @@ int main(int argc, char ** argv) int autorecord_to = 0; QString dither = "none"; QString recordfile; + QStringList recordargs; QString skin; bool devkeys = false; bool cache = false; @@ -94,6 +96,8 @@ int main(int argc, char ** argv) period = QString(argv[++i]).toInt(); } else if (arg == "-recordfile") { recordfile = QString(argv[++i]); + } else if (arg == "-record") { + recordargs << QString(argv[++i]); } else if (arg == "-recorddither") { dither = QString(argv[++i]); } else if (arg == "-autorecord") { @@ -142,6 +146,7 @@ int main(int argc, char ** argv) if (devkeys) viewer.setDeviceKeys(true); viewer.setRecordDither(dither); + viewer.setRecordArgs(recordargs); viewer.show(); return app.exec(); |