Added grid lines
[harmattan/cameraplus] / src / main.cpp
index f49dab1..f55d153 100644 (file)
@@ -43,6 +43,9 @@
 #include "sharehelper.h"
 #include "deletehelper.h"
 #include "galleryhelper.h"
+#include "postcapturemodel.h"
+#include "batteryinfo.h"
+#include "gridlines.h"
 
 static void initQuill() {
   // TODO: All these are hardcoded.
@@ -88,9 +91,11 @@ Q_DECL_EXPORT int main(int argc, char *argv[]) {
   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");
 
-  QUrl sourceUrl = QUrl::fromLocalFile(QDir::currentPath() + "/main.qml");
-  view.setSource(sourceUrl);
+  view.setSource(QUrl("qrc:/qml/main.qml"));
 
   view.showFullScreen();