#include "focusrectangle.h"
#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.
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");
- QUrl sourceUrl = QUrl::fromLocalFile(QDir::currentPath() + "/main.qml");
- view.setSource(sourceUrl);
+ view.setSource(QUrl("qrc:/qml/main.qml"));
view.showFullScreen();