summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/cocoa/qcocoasystemtrayicon.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms/cocoa/qcocoasystemtrayicon.h')
-rw-r--r--src/plugins/platforms/cocoa/qcocoasystemtrayicon.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoasystemtrayicon.h b/src/plugins/platforms/cocoa/qcocoasystemtrayicon.h
index 141995d1b1..ddc76f6b72 100644
--- a/src/plugins/platforms/cocoa/qcocoasystemtrayicon.h
+++ b/src/plugins/platforms/cocoa/qcocoasystemtrayicon.h
@@ -47,18 +47,20 @@
#if QT_CONFIG(systemtrayicon)
#include <QtCore/qstring.h>
+#include <QtCore/private/qcore_mac_p.h>
+
#include <QtGui/qpa/qplatformsystemtrayicon.h>
#include "qcocoamenu.h"
QT_FORWARD_DECLARE_CLASS(QCocoaSystemTrayIcon);
-@interface QT_MANGLE_NAMESPACE(QStatusItemDelegate) : NSObject <NSUserNotificationCenterDelegate>
+QT_DECLARE_NAMESPACED_OBJC_INTERFACE(QStatusItemDelegate, NSObject <NSUserNotificationCenterDelegate>
- (instancetype)initWithSysTray:(QCocoaSystemTrayIcon *)platformSystemTray;
@property (nonatomic, assign) QCocoaSystemTrayIcon *platformSystemTray;
-@end
+)
-QT_NAMESPACE_ALIAS_OBJC_CLASS(QStatusItemDelegate);
+Q_FORWARD_DECLARE_OBJC_CLASS(NSStatusItem);
QT_BEGIN_NAMESPACE