Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-138829

Fix uses of deprecated NSWindowStyleMaskTexturedBackground

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.9, 6.10, 6.11
    • QPA
    • macOS
    • 1e367f2f8 (dev), 9a34cb18c (6.10), 5509cb530 (6.9)

      src/plugins/platforms/cocoa/qcocoawindow.mm in qtbase uses NSWindowStyleMaskTexturedBackground, which is deprecated in enum was deprecated in macOS 10.11. This leads to compiler warnings:

      /Users/kkoehne/dev/qt/6.10/src/qtbase/src/plugins/platforms/cocoa/qcocoawindow.mm:647:22: warning: 'NSWindowStyleMaskTexturedBackground' is deprecated: first deprecated in macOS 11.0 - Textured window style should no longer be used [-Wdeprecated-declarations]
        647 |         styleMask |= NSWindowStyleMaskTexturedBackground;
            |                      ^
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:60:5: note: 'NSWindowStyleMaskTexturedBackground' has been explicitly marked deprecated here
         60 |     NSWindowStyleMaskTexturedBackground API_DEPRECATED("Textured window style should no longer be used", macos(10.2, 11.0)) = 1 << 8,
            |     ^
      /Users/kkoehne/dev/qt/6.10/src/qtbase/src/plugins/platforms/cocoa/qcocoawindow.mm:2058:48: warning: 'NSWindowStyleMaskTexturedBackground' is deprecated: first deprecated in macOS 11.0 - Textured window style should no longer be used [-Wdeprecated-declarations]
       2058 |         window.styleMask = window.styleMask & ~NSWindowStyleMaskTexturedBackground;
            |                                                ^
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:60:5: note: 'NSWindowStyleMaskTexturedBackground' has been explicitly marked deprecated here
         60 |     NSWindowStyleMaskTexturedBackground API_DEPRECATED("Textured window style should no longer be used", macos(10.2, 11.0)) = 1 << 8,
            |     ^
      /Users/kkoehne/dev/qt/6.10/src/qtbase/src/plugins/platforms/cocoa/qcocoawindow.mm:2084:47: warning: 'NSWindowStyleMaskTexturedBackground' is deprecated: first deprecated in macOS 11.0 - Textured window style should no longer be used [-Wdeprecated-declarations]
       2084 |     [window setStyleMask:[window styleMask] | NSWindowStyleMaskTexturedBackground];
            |                                               ^
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:60:5: note: 'NSWindowStyleMaskTexturedBackground' has been explicitly marked deprecated here
         60 |     NSWindowStyleMaskTexturedBackground API_DEPRECATED("Textured window style should no longer be used", macos(10.2, 11.0)) = 1 << 8,
            |     ^
      3 warnings generated.
      
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            vestbo Tor Arne Vestbø
            kkohne Kai Köhne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes