#include <QtGui/QApplication>
#include "mainwindow.h"
#include <QLocale>
#include <QSplashScreen>
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QSplashScreen *splash = new QSplashScreen;
     splash->setPixmap(QPixmap(":/splash.png"));
     splash->show();
    splash->showMessage("Loaded modules");
//    QLocale lo(QLocale::China, QLocale::Chinese);
    QLocale::setDefault(QLocale(QLocale::Chinese, QLocale::China));
//    QLocale::setDefault(&lo);
    qDebug() << "china";
    qDebug() << QLocale::system().language();
    MainWindow w;
#if defined(Q_OS_SYMBIAN) || defined(Q_OS_WINCE_WM) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)
  //  w.setControlsVisible(false);
    w.showMaximized();
#else
    w.show();
    qDebug() << "splash";
    splash->showMessage("Established connections");
        splash->finish(&w);
#endif
    return a.exec();
}