从git读取版本

This commit is contained in:
hm
2020-09-26 17:55:46 +08:00
parent 0987cd8b93
commit 28a2b2dd29
19 changed files with 463 additions and 93 deletions
+2 -2
View File
@@ -140,7 +140,7 @@ int main(int argc, char *argv[])
a.setAttribute(Qt::AA_DontCreateNativeWidgetSiblings);
QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF8"));
QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
LoadLang(&a);
@@ -150,7 +150,7 @@ int main(int argc, char *argv[])
MainWindow w;//这一步已经全部初始化完成
w.setWindowTitle(QString("GCS New Frame by Qt%1").arg(QT_VERSION_STR));//with version
w.setWindowTitle(QString("GCS New Frame Qt%1 %2").arg(QT_VERSION_STR).arg(APP_VERSION));//with version
// 主要是控制HDMI输出,如果是LCD显示,此行无关紧要
w.resize(GetDesktopSize());