diff options
author | Norwegian Rock Cat <qt-info@nokia.com> | 2009-04-15 11:14:31 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-04-15 16:14:18 (GMT) |
commit | d02f862d2ff106517c2ad3fab6d6f089dbd9f367 (patch) | |
tree | dfbe98d24099b787a16eabc1f35e20857b8bdde5 /src/gui/kernel/qcocoapanel_mac.mm | |
parent | 8f79eebb365dbeaa4bb6da148cba1dedbd15a950 (diff) | |
download | Qt-d02f862d2ff106517c2ad3fab6d6f089dbd9f367.zip Qt-d02f862d2ff106517c2ad3fab6d6f089dbd9f367.tar.gz Qt-d02f862d2ff106517c2ad3fab6d6f089dbd9f367.tar.bz2 |
BT: Namespace compile fixes for Cocoa.
It worked in 4.5.0, so it should work in 4.5.1 too.
Diffstat (limited to 'src/gui/kernel/qcocoapanel_mac.mm')
-rw-r--r-- | src/gui/kernel/qcocoapanel_mac.mm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/kernel/qcocoapanel_mac.mm b/src/gui/kernel/qcocoapanel_mac.mm index 95e20af..c69826f 100644 --- a/src/gui/kernel/qcocoapanel_mac.mm +++ b/src/gui/kernel/qcocoapanel_mac.mm @@ -49,8 +49,10 @@ #include <QtGui/QWidget> +QT_FORWARD_DECLARE_CLASS(QWidget); +QT_BEGIN_NAMESPACE extern Qt::MouseButton cocoaButton2QtButton(NSInteger buttonNum); // qcocoaview.mm - +QT_END_NAMESPACE QT_USE_NAMESPACE @implementation QT_MANGLE_NAMESPACE(QCocoaPanel) @@ -108,7 +110,7 @@ QT_USE_NAMESPACE [self retain]; QWidget *widget = [[QT_MANGLE_NAMESPACE(QCocoaWindowDelegate) sharedDelegate] qt_qwidgetForWindow:self]; - QCocoaView *view = static_cast<QCocoaView *>(qt_mac_nativeview_for(widget)); + QT_MANGLE_NAMESPACE(QCocoaView) *view = static_cast<QT_MANGLE_NAMESPACE(QCocoaView) *>(qt_mac_nativeview_for(widget)); Qt::MouseButton mouseButton = cocoaButton2QtButton([event buttonNumber]); // sometimes need to redirect mouse events to the popup. @@ -172,7 +174,7 @@ QT_USE_NAMESPACE + (Class)frameViewClassForStyleMask:(NSUInteger)styleMask { if (styleMask & QtMacCustomizeWindow) - return [QCocoaWindowCustomThemeFrame class]; + return [QT_MANGLE_NAMESPACE(QCocoaWindowCustomThemeFrame) class]; return [super frameViewClassForStyleMask:styleMask]; } |