-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.cpp
More file actions
28 lines (21 loc) · 838 Bytes
/
main.cpp
File metadata and controls
28 lines (21 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "chessdefine.h"
#include "chesssetting.h"
#include "chesslog.h"
#include "chessselectionwidget.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
app.setApplicationName(QObject::tr("Chinese Chess"));
app.setApplicationVersion(QLatin1String(CHESS_VERSION_STR));
app.setOrganizationName(QObject::tr("example"));
app.setOrganizationDomain(QLatin1String("www.example.com"));
Q_INIT_RESOURCE(chess);
Chess_Info(QObject::tr("start Chinese Chess program"));
Chess_Info(QObject::tr("start read configure file: chess.ini"));
ChessSetting::instance()->readSetting(); //读取配置文件
Chess_Info(QObject::tr("end read configure file: chess.ini"));
ChessSelectionWidget sw;
sw.show();
return app.exec();
}