macOS: Reduce verboseness of NSUserNotification deprecations
Task-number: QTBUG-110998 Change-Id: I8fe252a9f6798e38f77c96b715f334427ffd062e Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> (cherry picked from commit 364c462d806b63a7840706d7a436e09930d35314) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
733263d848
commit
a015038806
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user