Apple: Use namespaced category name sandbox helper

Pick-to: 6.5
Fixes: QTBUG-119338
Change-Id: I8a62b3fff0c1f3de2b6ae3332f6a1ecc7b1561e5
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit c8cd9017f6c9696d79c3e7b7f0b71748839c263f)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Tor Arne Vestbø 2023-11-22 10:34:01 +01:00 committed by Qt Cherry-pick Bot
parent d3def622ea
commit 81f9c77c3c
2 changed files with 2 additions and 2 deletions

View File

@ -505,7 +505,7 @@ bool qt_apple_isSandboxed()
} }
QT_END_NAMESPACE QT_END_NAMESPACE
@implementation NSObject (QtSandboxHelpers) @implementation NSObject (QtExtras)
- (id)qt_valueForPrivateKey:(NSString *)key - (id)qt_valueForPrivateKey:(NSString *)key
{ {
if (qt_apple_isSandboxed()) if (qt_apple_isSandboxed())

View File

@ -204,7 +204,7 @@ Q_CORE_EXPORT bool qt_apple_isSandboxed();
#if defined(__OBJC__) #if defined(__OBJC__)
QT_END_NAMESPACE QT_END_NAMESPACE
@interface NSObject (QtSandboxHelpers) @interface NSObject (QtExtras)
- (id)qt_valueForPrivateKey:(NSString *)key; - (id)qt_valueForPrivateKey:(NSString *)key;
@end @end
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE