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:
parent
eeb66b99df
commit
364c462d80
@ -56,6 +56,12 @@
|
|||||||
#include "qcocoascreen.h"
|
#include "qcocoascreen.h"
|
||||||
#include <QtGui/private/qcoregraphics_p.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
|
QT_BEGIN_NAMESPACE
|
||||||
|
|
||||||
void QCocoaSystemTrayIcon::init()
|
void QCocoaSystemTrayIcon::init()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user