mirror of https://github.com/qt/qtbase.git
cocoa: fix namespace manging for QNSView
Change-Id: I83035b45cabd938a9fdfa3a5d12de2c1793b30b3 Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
This commit is contained in:
parent
1126701f8c
commit
739f98aa09
|
@ -48,6 +48,8 @@
|
|||
#include <QtGui/QImage>
|
||||
#include <QtGui/QAccessible>
|
||||
|
||||
#include "private/qcore_mac_p.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QCocoaWindow;
|
||||
class QCocoaBackingStore;
|
||||
|
@ -56,7 +58,7 @@ QT_END_NAMESPACE
|
|||
|
||||
Q_FORWARD_DECLARE_OBJC_CLASS(QNSViewMouseMoveHelper);
|
||||
|
||||
@interface QNSView : NSView <NSTextInputClient> {
|
||||
@interface QT_MANGLE_NAMESPACE(QNSView) : NSView <NSTextInputClient> {
|
||||
QCocoaBackingStore* m_backingStore;
|
||||
QPoint m_backingStoreOffset;
|
||||
CGImageRef m_maskImage;
|
||||
|
@ -134,4 +136,6 @@ Q_FORWARD_DECLARE_OBJC_CLASS(QNSViewMouseMoveHelper);
|
|||
|
||||
@end
|
||||
|
||||
QT_NAMESPACE_ALIAS_OBJC_CLASS(QNSView);
|
||||
|
||||
#endif //QNSVIEW_H
|
||||
|
|
|
@ -122,7 +122,7 @@ static NSString *_q_NSWindowDidChangeOcclusionStateNotification = nil;
|
|||
|
||||
@end
|
||||
|
||||
@implementation QNSView
|
||||
@implementation QT_MANGLE_NAMESPACE(QNSView)
|
||||
|
||||
+ (void)initialize
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue