summaryrefslogtreecommitdiffstats
path: root/src/libs
diff options
context:
space:
mode:
authorArttu Tarkiainen <arttu.tarkiainen@qt.io>2021-01-21 10:09:51 +0200
committerArttu Tarkiainen <arttu.tarkiainen@qt.io>2021-01-21 11:07:45 +0200
commit08bdace731aeeb34b50f5988223ed5c23a8cbb56 (patch)
tree081941ae38601a4be12e9999acd7b322b908ba96 /src/libs
parentbf7e1bea802321590112c83f65772a87de34f878 (diff)
Set "FrameworkVersion" in a place consistent with other variables
Also document the predefined variable. Change-Id: I733bd4dfd245d300994e85c9ebb4b34a7c51de45 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io> Reviewed-by: Katja Marttila <katja.marttila@qt.io>
Diffstat (limited to 'src/libs')
-rw-r--r--src/libs/installer/packagemanagercoredata.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/installer/packagemanagercoredata.cpp b/src/libs/installer/packagemanagercoredata.cpp
index 149911d61..d488731df 100644
--- a/src/libs/installer/packagemanagercoredata.cpp
+++ b/src/libs/installer/packagemanagercoredata.cpp
@@ -182,6 +182,8 @@ void PackageManagerCoreData::setDynamicPredefinedVariables()
#endif
#define QUOTE_(x) #x
#define QUOTE(x) QUOTE_(x)
+ m_variables.insert(QLatin1String("FrameworkVersion"), QLatin1String(QUOTE(IFW_VERSION_STR)));
+ // Undocumented, left for compatibility with scripts using the old key
m_variables.insert(QLatin1String("IFW_VERSION_STR"), QLatin1String(QUOTE(IFW_VERSION_STR)));
#undef QUOTE
#undef QUOTE_