Fix typo
[yandex-traffic] / main.cpp
index c3e31ae..5520f6f 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -1,3 +1,4 @@
+#include <QtCore>
 #include "qmaemo5homescreenadaptor.h"
 #include "mainwidget.hpp"
 
@@ -5,10 +6,16 @@
 int main(int argc, char *argv[])
 {
     QApplication::setGraphicsSystem ("native");
+    QApplication::setOrganizationName ("Shmuma");
+    QApplication::setApplicationName ("yandex-traffic-widget");
+
     QApplication app (argc, argv);
+
     MainWidget w;
     QMaemo5HomescreenAdaptor *adaptor = new QMaemo5HomescreenAdaptor (&w);
 
+    w.connect (adaptor, SIGNAL (settingsRequested ()), SLOT (settingsDialog ()));
+
     adaptor->setSettingsAvailable (true);
 
     w.show ();