satui/satapp/src/main.cpp
changeset 15 d7fc66ccd6fb
parent 12 ae8abd0db65c
child 33 8d5d7fcf9b59
equal deleted inserted replaced
13:e32024264ebb 15:d7fc66ccd6fb
    15 *
    15 *
    16 *
    16 *
    17 */
    17 */
    18 
    18 
    19 #include <QApplication>
    19 #include <QApplication>
    20 
    20 #include <QTranslator>
    21 #include <hbapplication.h>
    21 #include <hbapplication.h>
    22 #include <hbmainwindow.h>
    22 #include <hbmainwindow.h>
    23 #include <QTranslator>
    23 
    24 #include "satappmainhandler.h"
    24 #include "satappmainhandler.h"
    25 
       
    26 #include "tflogger.h"
    25 #include "tflogger.h"
    27 
    26 
    28 int main(int argc, char *argv[])
    27 int main(int argc, char *argv[])
    29 {
    28 {
    30     TFLOGSTRING("SATAPP: main")
    29     TFLOGSTRING("SATAPP: main")
    37     TFLOGSTRING2("SATUI: main, translation %d (1=OK, 0=fail)", ok )
    36     TFLOGSTRING2("SATUI: main, translation %d (1=OK, 0=fail)", ok )
    38     app.installTranslator(&translator);
    37     app.installTranslator(&translator);
    39 
    38 
    40     HbMainWindow window;
    39     HbMainWindow window;
    41     TFLOGSTRING("SATAPP: main window created")
    40     TFLOGSTRING("SATAPP: main window created")
    42     
       
    43     // the code is only for test, currently, dphone79 only support
       
    44     // lanscape, remove it before official release
       
    45     #ifndef __WINSCW
       
    46     //window.setOrientation(Qt::Horizontal);
       
    47     #endif
       
    48 
    41 
    49     SatAppMainHandler *mainHandler = new SatAppMainHandler(window);
    42     SatAppMainHandler *mainHandler = new SatAppMainHandler(window);
    50         
    43         
    51     window.show();
    44     window.show();
    52     TFLOGSTRING("SATAPP: main view showed")
    45     TFLOGSTRING("SATAPP: main view showed")