QtSupport: allow relative paths for the qmake command

This change makes it possible to bake in settings for bundled/shipped
Qt versions like we have in the QtDesignStudio.app package.
The result is that the installer does not need to write absolute
paths to the settings anymore, so it stays like it was signed.

A signed package on macOS is more and more necessary
and recommended for a while. Especially If the application will
touch files in special folders like Download, Documents, or Desktop.

Change-Id: I3153ffd4229b34a59bdfe740937c21ee93de3e9b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
Tim Jenssen
2023-02-08 17:38:52 +01:00
parent dce852c7a4
commit a18ab6b11f
8 changed files with 19 additions and 10 deletions

View File

@@ -336,11 +336,17 @@ bool PersistentSettingsReader::load(const FilePath &fileName)
if (fileName.fileSize() == 0) // skip empty files
return false;
m_filePath = fileName.parentDir();
ParseContext ctx;
m_valueMap = ctx.parse(fileName);
return true;
}
FilePath PersistentSettingsReader::filePath()
{
return m_filePath;
}
/*!
\class Utils::PersistentSettingsWriter