SmartLockerTools/OtaUpdate/main.cpp
luocai c846ae81a0
All checks were successful
Build Applications / Build (push) Successful in 6m12s
Windows CI / build (push) Successful in 7m58s
show version for updater.
2024-11-21 09:31:41 +08:00

25 lines
667 B
C++

#include "BoostLog.h"
#include "Configuration.h"
#include "Widget.h"
#include <QApplication>
#include <QFont>
int main(int argc, char *argv[]) {
boost::log::initialize("logs/app");
QApplication a(argc, argv);
a.setApplicationName(APPLICATION_NAME);
a.setApplicationVersion(QString("v%1_%2 build: %3 %4").arg(APP_VERSION, GIT_COMMIT_ID, __DATE__, __TIME__));
QFont font;
font.setPointSize(16);
a.setFont(font);
Widget w;
w.setWindowTitle(QString("%1 %2").arg(a.applicationName()).arg(a.applicationVersion()));
w.setMinimumWidth(520);
w.setMinimumHeight(100);
w.show();
return a.exec();
}