diff options
author | Norwegian Rock Cat <qt-info@nokia.com> | 2009-04-15 13:14:31 +0200 |
---|---|---|
committer | Norwegian Rock Cat <qt-info@nokia.com> | 2009-04-15 13:30:17 +0200 |
commit | d7e8586e6ab009a6da1eb63aa6798d7c6a34c30d (patch) | |
tree | d389af272a132cf51e945996728e811ce4ca25e9 /src/gui/kernel/qcocoawindow_mac.mm | |
parent | 869c85e2f965a226416f0a142572ff749b30ba9e (diff) |
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/qcocoawindow_mac.mm')
-rw-r--r-- | src/gui/kernel/qcocoawindow_mac.mm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/kernel/qcocoawindow_mac.mm b/src/gui/kernel/qcocoawindow_mac.mm index 972e477a53..89f481fb06 100644 --- a/src/gui/kernel/qcocoawindow_mac.mm +++ b/src/gui/kernel/qcocoawindow_mac.mm @@ -53,9 +53,10 @@ #include <QtGui/QWidget> QT_FORWARD_DECLARE_CLASS(QWidget); -QT_USE_NAMESPACE - +QT_BEGIN_NAMESPACE extern Qt::MouseButton cocoaButton2QtButton(NSInteger buttonNum); // qcocoaview.mm +QT_END_NAMESPACE +QT_USE_NAMESPACE @implementation NSWindow (QT_MANGLE_NAMESPACE(QWidgetIntegration)) @@ -130,7 +131,7 @@ extern Qt::MouseButton cocoaButton2QtButton(NSInteger buttonNum); // qcocoaview. [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. |