diff options
author | ConfuSomu | 2024-01-05 16:23:11 +0100 |
---|---|---|
committer | ConfuSomu | 2024-01-05 16:58:41 +0100 |
commit | 5c60ecddaa4db927cf246933a5ba9802c3c8a2e8 (patch) | |
tree | c9f7c3ca3ab89dc6598cc60f259741267116b931 /src/aboutdialog.cpp | |
parent | 6a07ef99d9f98b1db4fad91b3cd69e6146c1f01e (diff) | |
download | ActorViewer-5c60ecddaa4db927cf246933a5ba9802c3c8a2e8.tar ActorViewer-5c60ecddaa4db927cf246933a5ba9802c3c8a2e8.tar.gz ActorViewer-5c60ecddaa4db927cf246933a5ba9802c3c8a2e8.zip |
Display commit hash in about dialog
Diffstat (limited to 'src/aboutdialog.cpp')
-rw-r--r-- | src/aboutdialog.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/aboutdialog.cpp b/src/aboutdialog.cpp index 0a96e59..97e2e90 100644 --- a/src/aboutdialog.cpp +++ b/src/aboutdialog.cpp @@ -6,8 +6,11 @@ AboutDialog::AboutDialog(QWidget* parent) { ui->setupUi(this); - // TODO: show version or git build in about text - //ui->label->setText(ui->label->text().arg("aaa")); +#ifdef GIT_COMMIT_HASH + ui->label->setText(ui->label->text().arg(tr("(commit %1)").arg(GIT_COMMIT_HASH))); +#else + ui->label->setText(ui->label->text().arg("")); +#endif // I have been saved by https://stackoverflow.com/a/22565649 // It's not more complicated than that… thankfully |