2020-05-24 08:39:32 +00:00
|
|
|
|
#include "frmmain.h"
|
2021-06-08 11:02:49 +00:00
|
|
|
|
#include "quihelper.h"
|
2020-05-24 08:39:32 +00:00
|
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
|
{
|
|
|
|
|
QApplication a(argc, argv);
|
|
|
|
|
a.setWindowIcon(QIcon(":/main.ico"));
|
|
|
|
|
|
|
|
|
|
QFont font;
|
|
|
|
|
font.setFamily(QUIConfig::FontName);
|
|
|
|
|
font.setPixelSize(QUIConfig::FontSize);
|
|
|
|
|
a.setFont(font);
|
|
|
|
|
|
|
|
|
|
//设置编码以及加载中文翻译文件
|
|
|
|
|
QUIHelper::initRand();
|
2021-11-07 06:51:35 +00:00
|
|
|
|
QUIHelper::setCode();
|
|
|
|
|
QUIHelper::setTranslator();
|
2020-05-24 08:39:32 +00:00
|
|
|
|
|
2021-04-13 01:36:22 +00:00
|
|
|
|
AppConfig::ConfigFile = QString("%1/%2.ini").arg(QUIHelper::appPath()).arg(QUIHelper::appName());
|
|
|
|
|
AppConfig::readConfig();
|
2020-05-24 08:39:32 +00:00
|
|
|
|
|
|
|
|
|
frmMain w;
|
2021-10-10 01:54:15 +00:00
|
|
|
|
w.setWindowTitle(QString("网络中转服务器V2021 本机IP: %1 QQ: 517216493").arg(QUIHelper::getLocalIP()));
|
2020-05-24 08:39:32 +00:00
|
|
|
|
w.show();
|
|
|
|
|
|
|
|
|
|
return a.exec();
|
|
|
|
|
}
|