phoneapp/phoneui2/src/main.cpp
changeset 77 2be0b271d017
parent 45 6b911d05207e
child 78 baacf668fe89
--- a/phoneapp/phoneui2/src/main.cpp	Fri Sep 17 08:29:19 2010 +0300
+++ b/phoneapp/phoneui2/src/main.cpp	Mon Oct 04 00:16:48 2010 +0300
@@ -22,12 +22,15 @@
 #include <xqserviceutil.h>
 
 #include "hbphonemainwindow.h"
+#include "phoneapplication.h"
 
 
 int main (int argc, char *argv[])
 {
-    HbApplication app (argc, argv, Hb::NoSplash);
+    PhoneApplication app(argc, argv, Hb::NoSplash);
     HbPhoneMainWindow window;
+    QObject::connect(&app,SIGNAL(focusLost()),&window,SLOT(onFocusLost()));
+    QObject::connect(&app,SIGNAL(focusGained()),&window,SLOT(onFocusGained()));
     XQServiceUtil::toBackground( true );
     return app.exec ();
 }