mirror of
https://github.com/chenx-dust/EZ4Connect.git
synced 2026-09-20 10:23:33 +08:00
feat: Better ZJUConnect core error process. feat: Added login dialog. refactor: Make all child widgets be dialogs. chore: Make setting system proxy default. chore: Bump version to 1.2.0 .
28 lines
775 B
C++
28 lines
775 B
C++
#include <QApplication>
|
|
|
|
#include "SingleApplication"
|
|
|
|
#include "mainwindow.h"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
SingleApplication app(argc, argv);
|
|
QApplication::setApplicationName("HITsz Connect for Windows");
|
|
QApplication::setApplicationDisplayName("HITsz Connect for Windows");
|
|
QApplication::setApplicationVersion("1.2.0");
|
|
|
|
// 愚人节彩蛋
|
|
QDate currentDate = QDate::currentDate();
|
|
if (currentDate.month() == 4 && currentDate.day() == 1) {
|
|
QApplication::setApplicationDisplayName("Connect Strike: HashenU for ウィンドウズ");
|
|
}
|
|
|
|
MainWindow mainWindow;
|
|
|
|
QObject::connect(&app, &SingleApplication::aboutToQuit, &mainWindow, &MainWindow::cleanUpWhenQuit);
|
|
|
|
mainWindow.show();
|
|
|
|
return QApplication::exec();
|
|
}
|