2019-09-29 05:13:01 +00:00
|
|
|
|
#include "frmmain.h"
|
2021-06-08 11:02:49 +00:00
|
|
|
|
#include "quihelper.h"
|
2019-09-29 05:13:01 +00:00
|
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
|
{
|
|
|
|
|
QApplication a(argc, argv);
|
2021-01-24 08:04:48 +00:00
|
|
|
|
a.setWindowIcon(QIcon(":/main.ico"));
|
2019-09-29 05:13:01 +00:00
|
|
|
|
|
2021-01-24 08:04:48 +00:00
|
|
|
|
//设置编码+字体+中文翻译文件
|
2021-11-07 06:51:35 +00:00
|
|
|
|
QUIHelper::initRand();
|
2019-09-29 05:13:01 +00:00
|
|
|
|
QUIHelper::setCode();
|
2021-01-22 09:20:01 +00:00
|
|
|
|
QUIHelper::setFont(":/DroidSansFallback.ttf");
|
2021-11-07 06:51:35 +00:00
|
|
|
|
QUIHelper::setTranslator();
|
2019-09-29 05:13:01 +00:00
|
|
|
|
|
2021-04-13 01:36:22 +00:00
|
|
|
|
AppConfig::ConfigFile = QString("%1/%2.ini").arg(QUIHelper::appPath()).arg(QUIHelper::appName());
|
|
|
|
|
AppConfig::readConfig();
|
2021-08-21 03:19:00 +00:00
|
|
|
|
|
|
|
|
|
AppData::Intervals << "1" << "10" << "20" << "50" << "100" << "200" << "300" << "500" << "1000" << "1500" << "2000" << "3000" << "5000" << "10000";
|
|
|
|
|
AppData::readSendData();
|
|
|
|
|
AppData::readDeviceData();
|
2019-09-29 05:13:01 +00:00
|
|
|
|
|
|
|
|
|
frmMain w;
|
2021-01-24 08:04:48 +00:00
|
|
|
|
w.setWindowTitle("网络调试助手 V2021 (QQ: 517216493 WX: feiyangqingyun)");
|
2021-03-20 05:54:55 +00:00
|
|
|
|
w.resize(950, 700);
|
2021-01-24 08:04:48 +00:00
|
|
|
|
QUIHelper::setFormInCenter(&w);
|
|
|
|
|
w.show();
|
2019-09-29 05:13:01 +00:00
|
|
|
|
|
|
|
|
|
return a.exec();
|
|
|
|
|
}
|