Skip to content

Commit e5a98f8

Browse files
committed
some last minute tweaks before release
1 parent df3e61b commit e5a98f8

File tree

7 files changed

+31
-5
lines changed

7 files changed

+31
-5
lines changed

DCT.pro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ SOURCES += \
2626
globalsettings.cpp
2727

2828
HEADERS += \
29+
appinfo.h \
2930
helpers.h \
3031
database.h \
3132
globalsettings.h \

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ Macro | Incoming Transformation | Outgoing Transformation | What it does
5050
# Deploying
5151
I'm using windeployqt to pull in DLLs to bundle with my exe for release. however, it doesn't pull in OpenSSL although it is needed for the Cloudinary API calls.
5252

53+
# License
54+
Licensed under Apache 2.0
55+
See LICENSE file for details.
56+
5357
# Notes to self:
5458
## Stats logging
5559
### Syntax:

appinfo.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#ifndef APPINFO_H
2+
#define APPINFO_H
3+
4+
#define APP_VERSION_STRING "0.1.0"
5+
6+
#define APP_ORG_NAME "JoshuaTzucker"
7+
#define APP_ORG_DOMAIN "joshuatz.com"
8+
#define APP_NAME "Desktop Cloud Transform"
9+
10+
#endif // APPINFO_H

helpers.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#include "appinfo.h"
12
#include "helpers.h"
23
#include <QObject>
34
#include <QDebug>
@@ -113,3 +114,7 @@ bool Helpers::getIsDebug(){
113114
return false;
114115
#endif
115116
}
117+
118+
QString Helpers::getVersionString(){
119+
return APP_VERSION_STRING;
120+
}

helpers.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public slots:
1919
static QString forceEndingSlash(QString input);
2020
static QString removeBeginSlash(QString input);
2121
static bool getIsDebug();
22+
static QString getVersionString();
2223
private:
2324
};
2425

main.cpp

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (C) 2019 Joshua Tzucker
3+
*/
4+
5+
#include "appinfo.h"
16
#include "apis/cloudinary.h"
27
#include "database.h"
38
#include "globalsettings.h"
@@ -20,10 +25,10 @@ int main(int argc, char *argv[])
2025
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
2126

2227
// Register settings config
23-
QCoreApplication::setOrganizationName("JoshuaTzucker");
24-
QCoreApplication::setOrganizationDomain("joshuatz.com");
25-
QCoreApplication::setApplicationName("Desktop Cloud Transform");
26-
QCoreApplication::setApplicationVersion("0.0.1");
28+
QCoreApplication::setOrganizationName(APP_ORG_NAME);
29+
QCoreApplication::setOrganizationDomain(APP_ORG_DOMAIN);
30+
QCoreApplication::setApplicationName(APP_NAME);
31+
QCoreApplication::setApplicationVersion(APP_VERSION_STRING);
2732

2833
QGuiApplication app(argc, argv);
2934
QQmlApplicationEngine engine;

qml/components/AboutPage.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Item {
3030
color: Qt.rgba(255/255,255/255,255/255,0.8)
3131
Text {
3232
anchors.centerIn: parent
33-
text: "About DCT"
33+
text: "About DCT - v" + Helpers.getVersionString()
3434
color: ThemeColors.darkPrimary
3535
font.pixelSize: 30
3636
}

0 commit comments

Comments
 (0)