[companion] Show commit hash and link to github issues in About dialog (#1415)
* Include Git Commit Number into about popup and refferencing to the github commit via link * Add Link to Create New Issue on Github * Add Link to Create New Issue on Github
This commit is contained in:
@@ -1024,8 +1024,12 @@ void MainWindow::about()
|
||||
aboutStr.append(tr("If you've found this program useful, please support by <a href='%1'>donating</a>").arg(DONATE_STR));
|
||||
aboutStr.append("<br/><br/>");
|
||||
aboutStr.append(QString("Version %1 \"%2\", %3").arg(VERSION).arg(CODENAME).arg(__DATE__));
|
||||
aboutStr.append("<br/>");
|
||||
aboutStr.append(QString("Commit <a href='%1'>%2</a>").arg("https://github.com/EdgeTX/edgetx/commit/" GIT_STR).arg(GIT_STR));
|
||||
aboutStr.append("<br/><br/>");
|
||||
aboutStr.append(tr("Copyright") + QString(" © 2021 EdgeTX<br/>"));
|
||||
aboutStr.append(tr("File new <a href='%1'>Issue or Request</a>").arg("https://github.com/EdgeTX/edgetx/issues/new/choose"));
|
||||
aboutStr.append("<br/><br/>");
|
||||
aboutStr.append(tr("Copyright") + QString(" © 2022 EdgeTX<br/>"));
|
||||
// aboutStr.append(tr("Copyright") + QString(" © 2021-%1 EdgeTX<br/>").arg(QString(__DATE__).right(4)));
|
||||
|
||||
QMessageBox msgBox(this);
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#define VERSION_REVISION @VERSION_REVISION@
|
||||
#define VERSION_SUFFIX "@VERSION_SUFFIX@"
|
||||
#define CODENAME "@CODENAME@"
|
||||
#define GIT_STR "@GIT_STR@"
|
||||
|
||||
#define VERSION_NUMBER ((VERSION_MAJOR << 16) | (VERSION_MINOR << 8) | VERSION_REVISION)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user