From 2ce76937d422cb35812977cfeab65312f830b14d Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Thu, 25 Mar 2021 13:45:37 +0100 Subject: [PATCH] macOS: Fix compile warning warning: 'NSCompositeCopy' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations] Change-Id: I471b7156e3d3111fbffd6d7a1ff99e8e847af7fe Reviewed-by: Vikas Pachdha Reviewed-by: Christian Stenger --- .../coreplugin/progressmanager/progressmanager_mac.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/coreplugin/progressmanager/progressmanager_mac.mm b/src/plugins/coreplugin/progressmanager/progressmanager_mac.mm index 0541a8441a5..3cbd811dd22 100644 --- a/src/plugins/coreplugin/progressmanager/progressmanager_mac.mm +++ b/src/plugins/coreplugin/progressmanager/progressmanager_mac.mm @@ -91,9 +91,9 @@ static ApplicationProgressView *sharedProgressView = nil; Q_UNUSED(rect) NSRect boundary = [self bounds]; [[NSApp applicationIconImage] drawInRect:boundary - fromRect:NSZeroRect - operation:NSCompositeCopy - fraction:1.0]; + fromRect:NSZeroRect + operation:NSCompositingOperationCopy + fraction:1.0]; NSRect progressBoundary = boundary; progressBoundary.size.height *= 0.13; progressBoundary.size.width *= 0.8;