cocoa_compat.patch raw

   1  Disable macOS 15 features in QCocoaCursor
   2  
   3  Bypasses an undefined reference to ___isPlatformVersionAtLeast
   4  for the @available(macOS 15, *) check.
   5  
   6  Can be dropped once OSX_MIN_VERSION is updated to 15.0+.
   7  
   8  The disabled code was introduced in 4aeb27fbacfade7106b19c460deb5414143a5e53.
   9  The referenced QTBUG-126240, in turn, refers to the NSCursor API for window
  10  resize cursors.
  11  
  12  
  13  --- a/qtbase/src/plugins/platforms/cocoa/qcocoacursor.mm
  14  +++ b/qtbase/src/plugins/platforms/cocoa/qcocoacursor.mm
  15  @@ -138,7 +138,7 @@ NSCursor *QCocoaCursor::convertCursor(QCursor *cursor)
  16       case Qt::SizeHorCursor:
  17       case Qt::SizeBDiagCursor:
  18       case Qt::SizeFDiagCursor: {
  19  -#if QT_MACOS_PLATFORM_SDK_EQUAL_OR_ABOVE(150000)
  20  +#if 0
  21           if (@available(macOS 15, *)) {
  22               auto position = [newShape]{
  23                   switch (newShape) {
  24