macOS: Reduce verboseness of NSUserNotification deprecations

Task-number: QTBUG-110998
Pick-to: 6.5
Change-Id: I8fe252a9f6798e38f77c96b715f334427ffd062e
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
Tor Arne Vestbø 2023-02-07 13:56:11 +01:00
parent eeb66b99df
commit 364c462d80

View File

@ -56,6 +56,12 @@
#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.
#define NSUserNotificationCenter QT_IGNORE_DEPRECATIONS(NSUserNotificationCenter)
#define NSUserNotification QT_IGNORE_DEPRECATIONS(NSUserNotification)
QT_BEGIN_NAMESPACE
void QCocoaSystemTrayIcon::init()