+ qmlRegisterType<CameraResources>("CameraPlus", 1, 0, "CameraResources");
+ qmlRegisterType<Compass>("CameraPlus", 1, 0, "CameraCompass");
+ qmlRegisterType<Orientation>("CameraPlus", 1, 0, "CameraOrientation");
+ qmlRegisterType<MountProtector>("CameraPlus", 1, 0, "MountProtector");
+ qmlRegisterType<TrackerStore>("CameraPlus", 1, 0, "TrackerStore");
+ qmlRegisterType<FocusRectangle>("CameraPlus", 1, 0, "FocusRectangle");
+ qmlRegisterType<ShareHelper>("CameraPlus", 1, 0, "ShareHelper");
+ qmlRegisterType<DeleteHelper>("CameraPlus", 1, 0, "DeleteHelper");
+ qmlRegisterType<GalleryHelper>("CameraPlus", 1, 0, "GalleryHelper");
+ qmlRegisterType<PostCaptureModel>("CameraPlus", 1, 0, "PostCaptureModel");
+ qmlRegisterType<BatteryInfo>("CameraPlus", 1, 0, "BatteryInfo");
+ qmlRegisterType<GridLines>("CameraPlus", 1, 0, "GridLines");
+ qmlRegisterType<DeviceKeys>("CameraPlus", 1, 0, "DeviceKeys");
+ qmlRegisterType<PlatformSettings>("CameraPlus", 1, 0, "PlatformSettings");
+
+ view->setSource(QUrl("qrc:/qml/main.qml"));
+
+#if defined(QT5)
+ if (view->status() == QQuickView::Error) {
+ qCritical() << "Errors loading QML:";
+ QList<QQmlError> errors = view->errors();
+
+ foreach (const QQmlError& error, errors) {
+ qCritical() << error.toString();
+ }