Add missing registration of CameraViewfinder QML type.
authorYoann Lopes <yoann.lopes@digia.com>
Tue, 22 Jul 2014 13:44:54 +0000 (15:44 +0200)
committerAndrew den Exter <andrew.den.exter@qinetic.com.au>
Fri, 25 Jul 2014 04:33:44 +0000 (06:33 +0200)
Change-Id: If4eedd6298731953a3f86c86f0e61b850ee263aa
Reviewed-by: Andrew den Exter <andrew.den.exter@qinetic.com.au>
src/imports/multimedia/multimedia.cpp

index 99d6ba4..2e4b0bc 100644 (file)
@@ -58,6 +58,7 @@
 #include "qdeclarativecameraflash_p.h"
 #include "qdeclarativecamerafocus_p.h"
 #include "qdeclarativecameraimageprocessing_p.h"
+#include "qdeclarativecameraviewfinder_p.h"
 #include "qdeclarativetorch_p.h"
 
 QML_DECLARE_TYPE(QSoundEffect)
@@ -107,6 +108,8 @@ public:
         // 5.4 types
         qmlRegisterSingletonType(uri, 5, 4, "QtMultimedia", QDeclarativeMultimedia::initGlobalObject);
         qmlRegisterRevision<QDeclarativeCamera, 1>(uri, 5, 4);
+        qmlRegisterUncreatableType<QDeclarativeCameraViewfinder>(uri, 5, 4, "CameraViewfinder",
+                                trUtf8("CameraViewfinder is provided by Camera"));
 
         qmlRegisterType<QDeclarativeMediaMetaData>();
     }