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