qds: workaround that appbundle finds the images

Task-number: QDS-9856
Change-Id: I4efe17b7a5daca12f29ac2d63bde3b5c8c3a142b
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Tim Jenßen
2023-05-11 10:27:31 +02:00
committed by Tim Jenssen
parent 12d9a31f17
commit f3fcce9f4f

View File

@@ -1673,6 +1673,11 @@ void openEffectMaker(const QString &filePath)
Utils::QtcProcess *qqemProcess = new Utils::QtcProcess();
qqemProcess->setEnvironment(env);
qqemProcess->setCommand({ effectMakerPath, arguments });
// workaround that effect maker can find the images QTBUG-113531
if (env.osType() == Utils::OsTypeMac)
qqemProcess->setWorkingDirectory(baseQtVersion->qmlPath().pathAppended("QtQuickEffectMaker"));
QObject::connect(qqemProcess, &Utils::QtcProcess::done, [qqemProcess]() {
qqemProcess->deleteLater();
});