summaryrefslogtreecommitdiffstats
path: root/tests/manual/rendercapture-cpp/mycapture.h
Commit message (Collapse)AuthorAgeFilesLines
* Correct license for test filesLucie Gérard2024-04-231-1/+1
| | | | | | | | | | | | According to QUIP-18 [1], all test files should be LicenseRef-Qt-Commercial OR GPL-3.0-only [1]: https://contribute.qt-project.org/quips/18 Pick-to: 6.7 Task-number: QTBUG-121787 Change-Id: I966d4033a73aacabb39f582270f2f1c18e2bcecd Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* Use SPDX license identifiersLucie Gérard2022-06-221-49/+2
| | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. License files are organized under LICENSES directory. Pick-to: 6.4 Task-number: QTBUG-67283 Change-Id: I8105424281eed871037fa6c463871ca8829876b5 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Fix crash in rendercapture-cpp manual testPaul Lemire2020-03-231-1/+1
| | | | | Change-Id: Id4ad6552fc1a254bd9414bab63400d624e902442 Reviewed-by: Mike Krus <mike.krus@kdab.com>
* Fix rendercapture-cpp example crash when using continuous captureMäättä Antti2017-04-181-3/+5
| | | | | | | | | | Disallow multiple simultanious captures. Task-number: QTBUG-59456 Change-Id: Ice7cb854a9a7090664ff5a24f332cb28eba6359e Reviewed-by: Paul Lemire <paul.lemire@kdab.com> Reviewed-by: Juan José Casafranca Reviewed-by: Antti Määttä <antti.maatta@qt.io>
* QRenderCapture: add saveImage() to replace saveToFile()Andy Maloney2017-04-121-1/+1
| | | | | | | | | QRenderCapture::saveToFile() does not return success/failure. Returning this properly means we don't have to verify success somehow. So add a new method called saveImage() to return the information, and deprecate saveToFile(). Change-Id: I7cf6639d90baa8bce8b90ee795d953a021de7978 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Clean up QRenderCapture(Reply) APIKevin Ottens2017-02-231-16/+10
| | | | | | | | | | | | | | | | We don't need the captureId in the public API so deprecate the functions which make it appear and create overloads with no such id when appropriate. Only a pointer to a QRenderCaptureReply is needed to represent a capture request. Also the "isCompleted" parameter is unneeded on the signal since it is always true anyway. If we'd want to do error management it would go via a status flag property or similar. Change-Id: I9571ece3e3f82f46db5b3993ccf035e770c9d55e Task-Id: QTBUG-58877 Reviewed-by: Antti Määttä <antti.maatta@qt.io> Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Fix -Wreorder warningsSean Harmer2017-02-081-2/+2
| | | | | Change-Id: I53e040b84fa9fcc8ecec34c85d93da780b0e97ae Reviewed-by: Antti Määttä <antti.maatta@qt.io>
* Add render capture exampleAntti Määttä2016-10-201-0/+112
Add example for the render capture. The example is based on simple-cpp. The user can press the capture button and see the captured thumbnail on the side. Change-Id: I94b18722cb0b563469579b4fad87764f37ad075e Reviewed-by: Paul Lemire <paul.lemire@kdab.com>