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:
parent
5f17c1cc3a
commit
66b329ee29
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue