summaryrefslogtreecommitdiff
path: root/src/qcam/viewfinder.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qcam/viewfinder.h')
-rw-r--r--src/qcam/viewfinder.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/qcam/viewfinder.h b/src/qcam/viewfinder.h
index 735a6b67..784fcced 100644
--- a/src/qcam/viewfinder.h
+++ b/src/qcam/viewfinder.h
@@ -27,15 +27,20 @@ struct MappedBuffer {
class ViewFinder : public QWidget
{
+ Q_OBJECT
+
public:
ViewFinder(QWidget *parent);
~ViewFinder();
int setFormat(const libcamera::PixelFormat &format, const QSize &size);
- void display(const libcamera::FrameBuffer *buffer, MappedBuffer *map);
+ void render(libcamera::FrameBuffer *buffer, MappedBuffer *map);
QImage getCurrentImage();
+Q_SIGNALS:
+ void renderComplete(libcamera::FrameBuffer *buffer);
+
protected:
void paintEvent(QPaintEvent *) override;
QSize sizeHint() const override;