diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2022-10-14 15:49:42 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2023-01-22 13:02:04 -0300 |
commit | 2c286561bbc9e4e408d34e5bf43db8ad9acc0e84 (patch) | |
tree | 17fe56089db1871ac8dee4ee7a73df59b369f66f /src/corelib/compat/removed_api.cpp | |
parent | 3ae052d3bb5d7af0badf32575a5aa042cffd8243 (diff) |
IPC: add native key support to QSharedMemory
And deprecate the non-native key support API. Qt 7 may not even store
the old, non-native key.
Documentation in a new commit, when the dust settles.
Drive-by updates to the tst_QSharedMemory::attach row names, to fix
grammar and remove spaces and apostrophe.
Change-Id: I12a088d1ae424825abd3fffd171d3025c77f94d2
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib/compat/removed_api.cpp')
-rw-r--r-- | src/corelib/compat/removed_api.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/corelib/compat/removed_api.cpp b/src/corelib/compat/removed_api.cpp index 0efc81d430..5ee844409a 100644 --- a/src/corelib/compat/removed_api.cpp +++ b/src/corelib/compat/removed_api.cpp @@ -313,6 +313,15 @@ int QMetaType::idHelper() const return registerHelper(d_ptr); } +#if QT_CONFIG(sharedmemory) +#include "qsharedmemory.h" + +void QSharedMemory::setNativeKey(const QString &key) +{ + setNativeKey(key, QNativeIpcKey::legacyDefaultTypeForOs()); +} +#endif + #include "qvariant.h" // these implementations aren't as efficient as they used to be prior to |