QTfrontend/main.cpp
changeset 8223 14d9a3c33650
parent 8206 1633a6510834
child 8278 9cdfcb5b7ddd
child 8316 89232b2fa1d6
equal deleted inserted replaced
8221:5e2dc5813408 8223:14d9a3c33650
    33 #include "newnetclient.h"
    33 #include "newnetclient.h"
    34 
    34 
    35 #include "DataManager.h"
    35 #include "DataManager.h"
    36 #include "FileEngine.h"
    36 #include "FileEngine.h"
    37 
    37 
    38 #include "frontlib.h"
       
    39 
       
    40 #ifdef _WIN32
    38 #ifdef _WIN32
    41 #include <Shlobj.h>
    39 #include <Shlobj.h>
    42 #endif
    40 #endif
    43 #ifdef __APPLE__
    41 #ifdef __APPLE__
    44 #include "CocoaInitializer.h"
    42 #include "CocoaInitializer.h"
   138 
   136 
   139     HWApplication app(argc, argv);
   137     HWApplication app(argc, argv);
   140 
   138 
   141     FileEngineHandler engine(argv[0]);
   139     FileEngineHandler engine(argv[0]);
   142 
   140 
   143     flib_init();
       
   144 
       
   145     app.setAttribute(Qt::AA_DontShowIconsInMenus,false);
   141     app.setAttribute(Qt::AA_DontShowIconsInMenus,false);
   146 
   142 
   147     QStringList arguments = app.arguments();
   143     QStringList arguments = app.arguments();
   148     QMap<QString, QString> parsedArgs;
   144     QMap<QString, QString> parsedArgs;
   149     {
   145     {
   319     if (file.open(QIODevice::ReadOnly | QIODevice::Text))
   315     if (file.open(QIODevice::ReadOnly | QIODevice::Text))
   320         style.append(file.readAll());
   316         style.append(file.readAll());
   321 
   317 
   322     app.form = new HWForm(NULL, style);
   318     app.form = new HWForm(NULL, style);
   323     app.form->show();
   319     app.form->show();
   324     int r = app.exec();
   320     return app.exec();
   325 
   321 }
   326     flib_quit();
       
   327 
       
   328     return r;
       
   329 }