#include "videomute.h"
#include "videotorch.h"
-// TODO: a viewfinder class that inherits QDeclarativeItem
-
Camera::Camera(QDeclarativeItem *parent) :
QDeclarativeItem(parent),
m_cam(new QtCamera(this)),
m_videoMute(0),
m_videoTorch(0) {
- // TODO:
+ QObject::connect(m_vf, SIGNAL(renderAreaChanged()), this, SIGNAL(renderAreaChanged()));
}
Camera::~Camera() {
}
}
+QRectF Camera::renderArea() const {
+ return m_vf->renderArea();
+}
+
void Camera::resetCapabilities() {
QtCamDevice *dev = device();