[simple versioning]

1. add application name & version on main.cpp
2. export version to qml and use it on AboutDialog, instead of the property of AppSettings
This commit is contained in:
Martín Fernández
2018-07-13 04:02:43 +02:00
parent 1cf6e2743b
commit ba5d1be9ba
3 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ Window{
Text{
anchors.horizontalCenter: parent.horizontalCenter
horizontalAlignment: Text.AlignHCenter
text: appSettings.version + "\n" +
text: applicationVersion + "\n" +
qsTr("Author: ") + "Filippo Scognamiglio\n" +
qsTr("Email: ") + "flscogna@gmail.com\n" +
qsTr("Source: ") + "https://github.com/Swordfish90/cool-retro-term\n"
-1
View File
@@ -24,7 +24,6 @@ import QtQuick.Controls 1.0
import "utils.js" as Utils
QtObject{
property string version: "1.0.1"
// STATIC CONSTANTS ////////////////////////////////////////////////////////