summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/sdk/sdkapp.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sdk/sdkapp.h b/src/sdk/sdkapp.h
index 3a32d0336..9c9e01f95 100644
--- a/src/sdk/sdkapp.h
+++ b/src/sdk/sdkapp.h
@@ -57,6 +57,9 @@
#include <QMessageBox>
#include <QMetaEnum>
+#define QUOTE_(x) #x
+#define QUOTE(x) QUOTE_(x)
+
template<class T>
class SDKApp : public T
{
@@ -196,6 +199,8 @@ public:
QUuid::createUuid().toString(), QUuid::createUuid().toString(),
QInstaller::Protocol::Mode::Production, userArgs, isCommandLineInterface);
}
+ // Set this for convenience usage with the installer JS object
+ m_core->setValue(QLatin1String("FrameworkVersion"), QLatin1String(QUOTE(IFW_VERSION_STR)));
// From Qt5.8 onwards system proxy is used by default. If Qt is built with
// QT_USE_SYSTEM_PROXIES false then system proxies are not used by default.