From e8e029e2a5573eecd7358cd5ed66afa89debb306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Mon, 18 Mar 2024 20:08:08 +0100 Subject: [PATCH] iOS: Replace deprecated UTType constants Change-Id: Ia610d46cf36292327ef87645af7516754eb1c79c Reviewed-by: Timur Pocheptsov --- src/plugins/platforms/ios/qiosdocumentpickercontroller.mm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/platforms/ios/qiosdocumentpickercontroller.mm b/src/plugins/platforms/ios/qiosdocumentpickercontroller.mm index af866077cd3..fca0432426e 100644 --- a/src/plugins/platforms/ios/qiosdocumentpickercontroller.mm +++ b/src/plugins/platforms/ios/qiosdocumentpickercontroller.mm @@ -30,14 +30,14 @@ case QFileDialogOptions::AnyFile: case QFileDialogOptions::ExistingFile: case QFileDialogOptions::ExistingFiles: - [docTypes addObject:[UTType typeWithIdentifier:(__bridge NSString *)kUTTypeContent]]; - [docTypes addObject:[UTType typeWithIdentifier:(__bridge NSString *)kUTTypeItem]]; - [docTypes addObject:[UTType typeWithIdentifier:(__bridge NSString *)kUTTypeData]]; + [docTypes addObject:[UTType typeWithIdentifier:(__bridge NSString *)UTTypeContent]]; + [docTypes addObject:[UTType typeWithIdentifier:(__bridge NSString *)UTTypeItem]]; + [docTypes addObject:[UTType typeWithIdentifier:(__bridge NSString *)UTTypeData]]; break; // Showing files is not supported in Directory mode in iOS case QFileDialogOptions::Directory: case QFileDialogOptions::DirectoryOnly: - [docTypes addObject:[UTType typeWithIdentifier:(__bridge NSString *)kUTTypeFolder]]; + [docTypes addObject:[UTType typeWithIdentifier:(__bridge NSString *)UTTypeFolder]]; break; } }