Move version string into Config header.

Makes it easier to update the version number.
This commit is contained in:
eelke 2022-10-02 12:11:43 +02:00
parent e68f17432c
commit f253a6c9ff
3 changed files with 7 additions and 1 deletions

View file

@ -1,4 +1,5 @@
#include "About.h"
#include "Config.h"
#include <QCoreApplication>
#include <QDesktopServices>
#include <QMessageBox>
@ -7,7 +8,7 @@
void ShowAboutDialog(QWidget *parent)
{
QString pgLabVersionString = "0.2";
QString pgLabVersionString = PGLAB_VERSION_STRING;
QString releaseNotesUrl = "https://eelke.gitlab.io/pgLab/releasenotes.html";
QString year = QString::fromLatin1(__DATE__, 11).right(4);
QMessageBox::about(parent, "pgLab", QMessageBox::tr(