Move version string into Config header.
Makes it easier to update the version number.
This commit is contained in:
parent
e68f17432c
commit
f253a6c9ff
3 changed files with 7 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
#include "About.h"
|
#include "About.h"
|
||||||
|
#include "Config.h"
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
#include <QDesktopServices>
|
#include <QDesktopServices>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
|
|
@ -7,7 +8,7 @@
|
||||||
|
|
||||||
void ShowAboutDialog(QWidget *parent)
|
void ShowAboutDialog(QWidget *parent)
|
||||||
{
|
{
|
||||||
QString pgLabVersionString = "0.2";
|
QString pgLabVersionString = PGLAB_VERSION_STRING;
|
||||||
QString releaseNotesUrl = "https://eelke.gitlab.io/pgLab/releasenotes.html";
|
QString releaseNotesUrl = "https://eelke.gitlab.io/pgLab/releasenotes.html";
|
||||||
QString year = QString::fromLatin1(__DATE__, 11).right(4);
|
QString year = QString::fromLatin1(__DATE__, 11).right(4);
|
||||||
QMessageBox::about(parent, "pgLab", QMessageBox::tr(
|
QMessageBox::about(parent, "pgLab", QMessageBox::tr(
|
||||||
|
|
|
||||||
4
pglab/Config.h
Normal file
4
pglab/Config.h
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#define PGLAB_VERSION_STRING "0.3"
|
||||||
|
|
||||||
|
|
@ -93,6 +93,7 @@ SOURCES += main.cpp\
|
||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
About.h \
|
About.h \
|
||||||
|
Config.h \
|
||||||
catalog/delegates/IconColumnDelegate.h \
|
catalog/delegates/IconColumnDelegate.h \
|
||||||
catalog/models/BaseTableModel.h \
|
catalog/models/BaseTableModel.h \
|
||||||
catalog/models/ColumnTableModel.h \
|
catalog/models/ColumnTableModel.h \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue