forked from qt-creator/qt-creator
macOS: Fix compile warning
warning: 'NSCompositeCopy' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations] Change-Id: I471b7156e3d3111fbffd6d7a1ff99e8e847af7fe Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -92,7 +92,7 @@ static ApplicationProgressView *sharedProgressView = nil;
|
|||||||
NSRect boundary = [self bounds];
|
NSRect boundary = [self bounds];
|
||||||
[[NSApp applicationIconImage] drawInRect:boundary
|
[[NSApp applicationIconImage] drawInRect:boundary
|
||||||
fromRect:NSZeroRect
|
fromRect:NSZeroRect
|
||||||
operation:NSCompositeCopy
|
operation:NSCompositingOperationCopy
|
||||||
fraction:1.0];
|
fraction:1.0];
|
||||||
NSRect progressBoundary = boundary;
|
NSRect progressBoundary = boundary;
|
||||||
progressBoundary.size.height *= 0.13;
|
progressBoundary.size.height *= 0.13;
|
||||||
|
|||||||
Reference in New Issue
Block a user