Silence NSUserNotification{Center} deprecation warnings
We know it's deprecated, and have a bug report to track it, so we don't need a compilation warning on each build. Task-number: QTBUG-110998 Change-Id: Icf5a670532cd923dc90d594621b38dbb6d344e2d Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
3fbdb31420
commit
5e6308b0f5
@ -23,9 +23,9 @@
|
||||
#include "qcocoascreen.h"
|
||||
#include <QtGui/private/qcoregraphics_p.h>
|
||||
|
||||
#warning NSUserNotification was deprecated in macOS 11. \
|
||||
We should be using UserNotifications.framework instead. \
|
||||
See QTBUG-110998 for more information.
|
||||
// NSUserNotification was deprecated in macOS 11.
|
||||
// We should be using UserNotifications.framework instead.
|
||||
// See QTBUG-110998 for more information.
|
||||
#define NSUserNotificationCenter QT_IGNORE_DEPRECATIONS(NSUserNotificationCenter)
|
||||
#define NSUserNotification QT_IGNORE_DEPRECATIONS(NSUserNotification)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user