zeit: add revision information

This commit is contained in:
blaze 2021-05-03 23:29:34 +03:00
parent c3a76ac729
commit 49f442d141
No known key found for this signature in database
GPG Key ID: C4996C546950EAE4
4 changed files with 9 additions and 3 deletions

View File

@ -9,6 +9,8 @@ set(VERSION_PATCH 97)
set(ZEIT_V "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
set(CRONTAB_V "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
file(READ rev ZEIT_REVISION LIMIT 9)
set(QT_MIN_VERSION "5.7.1")
find_package (Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
Core

0
rev Normal file
View File

View File

@ -17,6 +17,8 @@
* along with Zeit. If not, see <http://www.gnu.org/licenses/>.
* ======================================================================== */
#include "config.h"
#include <QApplication>
#include <QDialogButtonBox>
#include <QHBoxLayout>
@ -64,9 +66,10 @@ AboutDialog::AboutDialog(QWidget *parent) : BaseDialog(parent)
"&lt;blaze@vivaldi.net&gt;</p>"
"<p>Qt %2 (built with Qt %3)<br />"
"Licensed under GPL v3 or later</p>"
"<p>Built on %4</p>Project:<br />"
"<p>Built on %4 %5</p>Project:<br />"
"<a href=\"https://launchpad.net/zeit\">"
"https://launchpad.net/zeit</a>"))
.arg(qApp->applicationVersion(), qVersion(), QT_VERSION_STR, __DATE__));
.arg(qApp->applicationVersion(), qVersion(),
QT_VERSION_STR, __DATE__, ZEIT_REVISION));
layout()->setSizeConstraint(QLayout::SetFixedSize);
}

View File

@ -22,6 +22,7 @@
#cmakedefine BUILD_HELPER
#define ZEIT_V "@ZEIT_V@"
#define ZEIT_V "${ZEIT_V}"
#define ZEIT_REVISION "${ZEIT_REVISION}"
#endif // CONFIG_H_IN