#include "devicekeys.h"
#include "platformsettings.h"
#include "dbusservice.h"
+#include "phoneprofile.h"
#include <MDeclarativeCache>
#ifdef QMLJSDEBUGGER
#endif
Q_DECL_EXPORT int main(int argc, char *argv[]) {
+#ifdef QMLJSDEBUGGER
+ QDeclarativeDebugHelper::enableDebugging();
+#endif /* QMLJSDEBUGGER */
+
#if defined(QT4)
QApplication::setAttribute(Qt::AA_X11InitThreads, true);
QApplication *app = new QApplication(argc, argv);
+ app->setApplicationName("cameraplus");
QmlFileEngineHandler handler;
Q_UNUSED(handler);
QDeclarativeView *view = MDeclarativeCache::qDeclarativeView();
#elif defined(QT5)
QGuiApplication *app = MDeclarativeCache::qApplication(argc, argv);
+ app->setApplicationName("cameraplus");
+
QQuickView *view = MDeclarativeCache::qQuickView();
#endif
-#ifdef QMLJSDEBUGGER
- QDeclarativeDebugHelper::enableDebugging();
-#endif /* QMLJSDEBUGGER */
-
#if defined(QT4)
view->setAttribute(Qt::WA_NoSystemBackground);
view->setViewport(new QGLWidget);
qmlRegisterType<GridLines>("CameraPlus", 1, 0, "GridLines");
qmlRegisterType<DeviceKeys>("CameraPlus", 1, 0, "DeviceKeys");
qmlRegisterType<PlatformSettings>("CameraPlus", 1, 0, "PlatformSettings");
+ qmlRegisterType<PhoneProfile>("CameraPlus", 1, 0, "PhoneProfile");
view->setSource(QUrl("qrc:/qml/main.qml"));