phoneapp/phoneui2/src/main.cpp
changeset 74 d1c62c765e48
parent 45 6b911d05207e
child 78 baacf668fe89
equal deleted inserted replaced
65:2a5d4ab426d3 74:d1c62c765e48
    20 #include <hbmainwindow.h>
    20 #include <hbmainwindow.h>
    21 #include <hbtoolbar.h>
    21 #include <hbtoolbar.h>
    22 #include <xqserviceutil.h>
    22 #include <xqserviceutil.h>
    23 
    23 
    24 #include "hbphonemainwindow.h"
    24 #include "hbphonemainwindow.h"
       
    25 #include "phoneapplication.h"
    25 
    26 
    26 
    27 
    27 int main (int argc, char *argv[])
    28 int main (int argc, char *argv[])
    28 {
    29 {
    29     HbApplication app (argc, argv, Hb::NoSplash);
    30     PhoneApplication app(argc, argv, Hb::NoSplash);
    30     HbPhoneMainWindow window;
    31     HbPhoneMainWindow window;
       
    32     QObject::connect(&app,SIGNAL(focusLost()),&window,SLOT(onFocusLost()));
       
    33     QObject::connect(&app,SIGNAL(focusGained()),&window,SLOT(onFocusGained()));
    31     XQServiceUtil::toBackground( true );
    34     XQServiceUtil::toBackground( true );
    32     return app.exec ();
    35     return app.exec ();
    33 }
    36 }