diff options
author | Andy Maloney <asmaloney@gmail.com> | 2017-04-10 15:07:27 -0400 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2017-04-12 19:34:12 +0000 |
commit | c7eea417418b0d502b8a4acf9ddfc6d01ff29226 (patch) | |
tree | e001dfc90525dc9e0d4ca1717b2bbc28e21bfb44 /tests/manual/rendercapture-cpp/mycapture.h | |
parent | e0541bb009c976cd83ad13e34468cb957d8ff507 (diff) |
QRenderCapture: add saveImage() to replace saveToFile()
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>
Diffstat (limited to 'tests/manual/rendercapture-cpp/mycapture.h')
-rw-r--r-- | tests/manual/rendercapture-cpp/mycapture.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/manual/rendercapture-cpp/mycapture.h b/tests/manual/rendercapture-cpp/mycapture.h index cfd4afd6c..e142a5453 100644 --- a/tests/manual/rendercapture-cpp/mycapture.h +++ b/tests/manual/rendercapture-cpp/mycapture.h @@ -73,7 +73,7 @@ public slots: m_imageLabel->setPixmap(QPixmap::fromImage(m_reply->image())); - m_reply->saveToFile("capture.bmp"); + m_reply->saveImage("capture.bmp"); delete m_reply; m_reply = nullptr; |