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(

4
pglab/Config.h Normal file
View file

@ -0,0 +1,4 @@
#pragma once
#define PGLAB_VERSION_STRING "0.3"

View file

@ -93,6 +93,7 @@ SOURCES += main.cpp\
HEADERS += \
About.h \
Config.h \
catalog/delegates/IconColumnDelegate.h \
catalog/models/BaseTableModel.h \
catalog/models/ColumnTableModel.h \