}
void VideoPlayer::componentComplete() {
+#if defined(QT4)
+ QDeclarativeItem::componentComplete();
+#elif defined(QT5)
+ QQuickPaintedItem::componentComplete();
+#endif
+
if (!m_config) {
qmlInfo(this) << "CameraConfig not set";
return;
#endif
#include <QPainter>
#include "qtcamdevice.h"
+#include <QMatrix4x4>
#if defined(QT4)
Viewfinder::Viewfinder(QDeclarativeItem *parent) :
}
void Viewfinder::componentComplete() {
+#if defined(QT4)
+ QDeclarativeItem::componentComplete();
+#elif defined(QT5)
+ QQuickPaintedItem::componentComplete();
+#endif
+
if (!m_cam) {
qmlInfo(this) << "Camera not set";
return;