SharedImageLoader: Do not use deprecated IPC mechanism

Change-Id: If368424ffa75921c001a9a72c4c8e46779ae52e1
Reviewed-by: Matthias Rauter <matthias.rauter@qt.io>
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
This commit is contained in:
Fabian Kosmale 2023-01-23 14:05:16 +01:00
parent 5f17c1cc3a
commit 66b329ee29
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ QImage QSharedImageLoaderPrivate::load(const QString &path, QSharedImageLoader::
if (path.isEmpty())
return nil;
auto shm = std::make_unique<QSharedMemory>(q->key(path, params));
auto shm = std::make_unique<QSharedMemory>(QSharedMemory::legacyNativeKey(q->key(path, params)));
bool locked = false;
if (!shm->attach(QSharedMemory::ReadOnly)) {