From 0f292e7821b809df77de443dd30148a609cc4f49 Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Wed, 5 Feb 2020 16:02:05 +0000 Subject: qcam: Provide save image functionality Implement a save image button on the toolbar which will take a current viewfinder image and present the user with a QFileDialog to allow them to choose where to save the image. Utilise the QImageWriter to perform the output task. Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- src/qcam/main_window.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/qcam/main_window.h') diff --git a/src/qcam/main_window.h b/src/qcam/main_window.h index 27ceed61..40aa10aa 100644 --- a/src/qcam/main_window.h +++ b/src/qcam/main_window.h @@ -49,6 +49,8 @@ private Q_SLOTS: int startCapture(); void stopCapture(); + void saveImageAs(); + private: int createToolbars(); std::string chooseCamera(); -- cgit v1.2.1