Set applicationName to cameraplus.
authorMohammed Sameer <msameer@foolab.org>
Tue, 6 Aug 2013 18:59:27 +0000 (21:59 +0300)
committerMohammed Sameer <msameer@foolab.org>
Tue, 6 Aug 2013 18:59:27 +0000 (21:59 +0300)
Not sure it's used anywhere but it doesn't hurt.

src/main.cpp

index abfad89..407095b 100644 (file)
@@ -82,6 +82,7 @@ Q_DECL_EXPORT int main(int argc, char *argv[]) {
 #if defined(QT4)
   QApplication::setAttribute(Qt::AA_X11InitThreads, true);
   QApplication *app = new QApplication(argc, argv);
 #if defined(QT4)
   QApplication::setAttribute(Qt::AA_X11InitThreads, true);
   QApplication *app = new QApplication(argc, argv);
+  app->setApplicationName("cameraplus");
 
   QmlFileEngineHandler handler;
   Q_UNUSED(handler);
 
   QmlFileEngineHandler handler;
   Q_UNUSED(handler);
@@ -89,6 +90,8 @@ Q_DECL_EXPORT int main(int argc, char *argv[]) {
   QDeclarativeView *view = MDeclarativeCache::qDeclarativeView();
 #elif defined(QT5)
   QGuiApplication *app = MDeclarativeCache::qApplication(argc, argv);
   QDeclarativeView *view = MDeclarativeCache::qDeclarativeView();
 #elif defined(QT5)
   QGuiApplication *app = MDeclarativeCache::qApplication(argc, argv);
+  app->setApplicationName("cameraplus");
+
   QQuickView *view = MDeclarativeCache::qQuickView();
 #endif
 
   QQuickView *view = MDeclarativeCache::qQuickView();
 #endif