summaryrefslogtreecommitdiff
path: root/src/qcam/viewfinder.cpp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-03-23 01:27:33 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-03-24 10:33:41 +0200
commitac02d741dceb081d1166b78e13f180a3a375579d (patch)
tree857078abbeef85b352dfd0d0901f3fd8214fad0a /src/qcam/viewfinder.cpp
parent01590c3f780598572b3a18decefed55ae8e51059 (diff)
qcam: Ensure headers are self-contained
Include the headers corresponding to each compile unit at the very first line to ensure they are self-contained. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/qcam/viewfinder.cpp')
-rw-r--r--src/qcam/viewfinder.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qcam/viewfinder.cpp b/src/qcam/viewfinder.cpp
index e9d5cc1e..f4602f07 100644
--- a/src/qcam/viewfinder.cpp
+++ b/src/qcam/viewfinder.cpp
@@ -5,13 +5,14 @@
* viewfinder.cpp - qcam - Viewfinder
*/
+#include "viewfinder.h"
+
#include <QImage>
#include <QImageWriter>
#include <QMutexLocker>
#include <QPainter>
#include "format_converter.h"
-#include "viewfinder.h"
ViewFinder::ViewFinder(QWidget *parent)
: QWidget(parent), format_(0), width_(0), height_(0), image_(nullptr)