Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
Clone or download
Main.cpp 1.09 KB
Copy Edit Web IDE Raw Blame History
kl222 authored 2019-04-29 11:09 . Modify translatioins
/*++
Copyright (c) Kang Lin studio, All Rights Reserved
Author:
Kang Lin(kl222@126.com)
Module Name:
main.cpp
Abstract:
This file contains main implement.
*/
#ifdef RABBITCOMMON
#include "RabbitCommonTools.h"
#include "FrmUpdater/FrmUpdater.h"
#include "RabbitCommonGlobalDir.h"
#endif
#include "MainWindow.h"
#include <QApplication>
#include <QDir>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QTranslator translator;
translator.load(CRabbitCommonGlobalDir::Instance()->GetDirTranslations()
+ "/SerialPortAssistant_" + QLocale::system().name() + ".qm");
qApp->installTranslator(&translator);
#ifdef RABBITCOMMON
CRabbitCommonTools::Instance()->Init();
#endif
a.setApplicationName("SerialPortAssistant");
a.setApplicationDisplayName(QObject::tr("SerialPort Assistant"));
#ifdef RABBITCOMMON
CFrmUpdater *pUpdate = new CFrmUpdater();
if(!pUpdate->GenerateUpdateXml())
return 0;
#endif
CMainWindow w;
w.show();
return a.exec();
}

Comment ( 0 )

Sign in for post a comment