diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-07-31 04:39:40 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-07-31 04:39:40 (GMT) |
commit | 510b9523339d97b8b52175ddb5a21bff706b3d7c (patch) | |
tree | 9aa7a4610f7f332a9296a0c78e476b2c5a4bcaba /tools/qmlviewer/qmlviewer.cpp | |
parent | cdc75c83220741c4e0ee037c8f4025856829d44a (diff) | |
download | Qt-510b9523339d97b8b52175ddb5a21bff706b3d7c.zip Qt-510b9523339d97b8b52175ddb5a21bff706b3d7c.tar.gz Qt-510b9523339d97b8b52175ddb5a21bff706b3d7c.tar.bz2 |
Fix autorecord.
Diffstat (limited to 'tools/qmlviewer/qmlviewer.cpp')
-rw-r--r-- | tools/qmlviewer/qmlviewer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/qmlviewer/qmlviewer.cpp b/tools/qmlviewer/qmlviewer.cpp index 098f749..c1b9eb1 100644 --- a/tools/qmlviewer/qmlviewer.cpp +++ b/tools/qmlviewer/qmlviewer.cpp @@ -640,8 +640,10 @@ void QmlViewer::setSkin(const QString& skinDirectory) void QmlViewer::setAutoRecord(int from, int to) { + if (from==0) from=1; // ensure resized record_autotime = to-from; autoStartTimer.setInterval(from); + autoStartTimer.setRunning(true); } void QmlViewer::setRecordArgs(const QStringList& a) @@ -866,7 +868,7 @@ void QmlViewer::autoStartRecording() void QmlViewer::autoStopRecording() { - setRecording(true); + setRecording(false); } void QmlViewer::recordFrame() |