diff --git a/main.cpp b/main.cpp
index 6aa3170..4688f53 100644
--- a/main.cpp
+++ b/main.cpp
@@ -18,6 +18,12 @@ int main(int argc, char *argv[])
{
QApplication a(argc, argv);
+ a.setApplicationVersion(APP_VERSION);
+ a.setApplicationDisplayName("storyWriter");
+ a.setOrganizationName("WIN-DESIGN");
+ a.setOrganizationDomain("windesign.at");
+ a.setApplicationName("storyWriter");
+
#ifdef SHOW_SPLASH
QPixmap pixmap(":/images/splash.png");
#else
@@ -45,10 +51,6 @@ int main(int argc, char *argv[])
lpSplash->showStatusMessage(QObject::tr("
initializing..."));
- QCoreApplication::setOrganizationName("WIN-DESIGN");
- QCoreApplication::setOrganizationDomain("windesign.at");
- QCoreApplication::setApplicationName("storyWriter");
-
QSettings settings;
cMainWindow w(lpSplash);
diff --git a/storyWriter.pro b/storyWriter.pro
index a52f540..1ae8f49 100644
--- a/storyWriter.pro
+++ b/storyWriter.pro
@@ -4,6 +4,12 @@
#
#-------------------------------------------------
+VERSION = 0.0.1.0
+QMAKE_TARGET_COMPANY = WIN-DESIGN
+QMAKE_TARGET_PRODUCT = storyWriter
+QMAKE_TARGET_DESCRIPTION = storyWriter
+QMAKE_TARGET_COPYRIGHT = (c) 2018 WIN-DESIGN
+
QT += core gui xml sql
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
@@ -17,6 +23,7 @@ qtHaveModule(printsupport): QT += printsupport
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
+DEFINES += APP_VERSION=\\\"$$VERSION\\\"
# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.