Cocoa: Compile with Qt in a namespace.
Task-number: QTBUG-29710 Change-Id: I28a4c213b78723aa369c7e00167401ec643155e6 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>bb10
parent
d9b04f8575
commit
cf885ee836
|
|
@ -315,9 +315,12 @@ NSMenuItem *QCocoaMenuItem::sync()
|
|||
return m_native;
|
||||
}
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
extern QString qt_mac_applicationmenu_string(int type);
|
||||
QT_END_NAMESPACE
|
||||
|
||||
QString QCocoaMenuItem::mergeText()
|
||||
{
|
||||
extern QString qt_mac_applicationmenu_string(int type);
|
||||
QT_MANGLE_NAMESPACE(QCocoaMenuLoader) *loader = getMenuLoader();
|
||||
if (m_native == [loader aboutMenuItem]) {
|
||||
return qt_mac_applicationmenu_string(6).arg(qt_mac_applicationName());
|
||||
|
|
|
|||
Loading…
Reference in New Issue