mirror of
https://github.com/loimu/zeit.git
synced 2025-09-15 12:58:44 +08:00
zeit: add revision information
This commit is contained in:
parent
c3a76ac729
commit
49f442d141
@ -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
|
||||
|
||||
@ -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)
|
||||
"<blaze@vivaldi.net></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);
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user