aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/gifs/gifrecorder.cpp
Commit message (Collapse)AuthorAgeFilesLines
* import Qt.labs.controls 1.0 => QtQuick.Controls 2.0J-P Nurmi2016-04-211-1/+1
| | | | | | | | | Docs, resources, .metainfo and plugins.qmltypes will be updated in follow up commits. Change-Id: I4438c5bfb8802bff0fa15c56431cfd288f179861 Task-number: QTBUG-52549 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* GifRecorder: bump recording duration limit to 20 secondsMitch Curtis2016-03-031-1/+1
| | | | | | | | 10 seconds is only just long enough for some controls, like SwipeDelegate. Change-Id: I20ccd65fe6262e11ab03d8f787e480e30ab84df9 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* C++11 keywordsJ-P Nurmi2016-01-211-2/+2
| | | | | | | | - Q_NULLPTR -> nullptr - Q_DECL_OVERRIDE -> override Change-Id: I8ee65caafd43ab41b6de43835200cac6c8ffa278 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Fix some issues with GifRecorderMitch Curtis2015-12-091-2/+7
| | | | | | | | | | | | - Try to ensure that the correct region is recorded. Sometimes, on specific machines, I've seen the region being offset by a vertical distance of 24 pixels (the size of the title bar). - Try to ensure that the window has time to render before we start recording with byzanz. Change-Id: Ia4c354ba436ed21af0e83303a98faa616be63325 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* GifRecorder: don't assume QQuickViewMitch Curtis2015-11-301-18/+24
| | | | | | | | | | | | | This allows us to use windows as root items, which means we can have complete examples - not just a snippet without imports. With this, we can have runnable snippets under each GIF, without the need for the user to add code to get it to run. This change is also necessary to generate GIFs for Panel-based items like Menu, which require an ApplicationWindow. Change-Id: I66fec30cde8d719be35766f8c917cd2a06b09127 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* tests: fix license headersJ-P Nurmi2015-11-081-1/+1
| | | | | Change-Id: Id3be5a62dec38d610695d71ad792016fabdc922d Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Rename QtQuick.Controls 2.0 to Qt.labs.controls 1.0J-P Nurmi2015-10-011-1/+1
| | | | | Change-Id: I142622dd85e95ef70b11132e77ccf48701f2cabc Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* GifRecorder: add some indication of when recordings are finished.Mitch Curtis2015-08-281-0/+13
| | | | | | | | | | This is important for high quality recordings, where there is some conversion that must be done after the recording. If we don't do this, it's hard to get a good idea of when the recording actually finishes. Change-Id: Iafb73358288e50d8f070607f8d69602da6d32506 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* GifRecorder: force view updates.Mitch Curtis2015-08-111-5/+21
| | | | | | | byzanz-record will cut recordings short if there are no repaints. Change-Id: Ied7fcfec066aa3d558b5e6909f7abf74628cfa23 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* GifRecorder: refactor code.Mitch Curtis2015-08-101-67/+62
| | | | | Change-Id: Iba14928bdbdc7f01f7ccc7bd55181ec989188ce2 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* GifRecorder: add a gifsicle optimization step.Mitch Curtis2015-08-101-19/+36
| | | | | | | | qtquickcontrols2-busyindicator.gif: 39 kB => 31kB (20%) qtquickcontrols2-slider.gif: 34 kB => 13kB (61%) Change-Id: Iee2c74f1a9e3900572966bd600921d0ad2af80cf Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* GifRecorder: add a high quality option.Mitch Curtis2015-08-071-31/+111
| | | | | | | | | | | | | | | | | byzanz-record will heavily optimize colors in certain GIFs. The GIF generated for BusyIndicator, for example, lost all of its "transparency" that it has in the source image. The man page says that the .flv format is lossless, so when setHighQuality(true) is called, we record a video and then convert it to a bunch of frames with avconv, then to a GIF with convert. Finally, to further optimize the GIF, we could run it through gifsicle, so I haven't updated any GIFs in the docs yet. Change-Id: I0ccc5e2258d7c6dac52e464bcd6fb61128541e82 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* GitRecorder: don't warn on empty outputFileName.Mitch Curtis2015-08-071-3/+4
| | | | | | | If it's empty, we generate it for the user. Change-Id: I4f02fcd603eb0c3c4ebba4838bcbd45f20ad6414 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add gifs manual test.Mitch Curtis2015-08-071-0/+170
This is similar to the snippets auto test, in that it's more of a utility than a test. In this case, the testing provides a convenient way to run several recording "jobs" at once, as well as feed the app with generated input events. The test is different to the snippets auto test in that it: - Tests QML code that isn't shown to users; only the GIFs are displayed in the documentation. - Requires interaction to produce its output, which is achieved with mousePress(), etc. For this reason, it also can't just iterate over the list of QML files. - Requires byzanz to be installed in order to record the GIFs. The test also comes with EventCapturer, an event-filter based class that records mouse movements and generates compact C++ code for use with the GifRecorder. There is one known issue, which is a bug in byzanz-record: it sometimes decides to record the mouse cursor even if you didn't ask it to. Change-Id: Icaaa4f37c8d34a813e36901fd187d84e4f250d33 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>