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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user