diff -r c76a0b1755b9 -r 2be0b271d017 phoneapp/phoneui2/src/main.cpp --- 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 #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 (); }