mirror of
https://github.com/crystalidea/qt-build-tools.git
synced 2024-11-23 03:10:06 +08:00
5.13.2: sync fix for QTBUG-18624 from 5.14 branch
This commit is contained in:
parent
d7048c2056
commit
5ac35524dc
@ -227,10 +227,7 @@ QT_USE_NAMESPACE
|
|||||||
application depends on.
|
application depends on.
|
||||||
*/
|
*/
|
||||||
NSAppleEventManager *eventManager = [NSAppleEventManager sharedAppleEventManager];
|
NSAppleEventManager *eventManager = [NSAppleEventManager sharedAppleEventManager];
|
||||||
/*[eventManager setEventHandler:self
|
|
||||||
andSelector:@selector(appleEventQuit:withReplyEvent:)
|
|
||||||
forEventClass:kCoreEventClass
|
|
||||||
andEventID:kAEQuitApplication];*/
|
|
||||||
[eventManager setEventHandler:self
|
[eventManager setEventHandler:self
|
||||||
andSelector:@selector(getUrl:withReplyEvent:)
|
andSelector:@selector(getUrl:withReplyEvent:)
|
||||||
forEventClass:kInternetEventClass
|
forEventClass:kInternetEventClass
|
||||||
@ -241,7 +238,7 @@ QT_USE_NAMESPACE
|
|||||||
- (void)removeAppleEventHandlers
|
- (void)removeAppleEventHandlers
|
||||||
{
|
{
|
||||||
NSAppleEventManager *eventManager = [NSAppleEventManager sharedAppleEventManager];
|
NSAppleEventManager *eventManager = [NSAppleEventManager sharedAppleEventManager];
|
||||||
//[eventManager removeEventHandlerForEventClass:kCoreEventClass andEventID:kAEQuitApplication];
|
|
||||||
[eventManager removeEventHandlerForEventClass:kInternetEventClass andEventID:kAEGetURL];
|
[eventManager removeEventHandlerForEventClass:kInternetEventClass andEventID:kAEGetURL];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -376,13 +373,6 @@ QT_USE_NAMESPACE
|
|||||||
QWindowSystemInterface::handleFileOpenEvent(QUrl(QString::fromNSString(urlString)));
|
QWindowSystemInterface::handleFileOpenEvent(QUrl(QString::fromNSString(urlString)));
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)appleEventQuit:(NSAppleEventDescriptor *)event withReplyEvent:(NSAppleEventDescriptor *)replyEvent
|
|
||||||
{
|
|
||||||
Q_UNUSED(event);
|
|
||||||
Q_UNUSED(replyEvent);
|
|
||||||
[NSApp terminate:self];
|
|
||||||
}
|
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation QCocoaApplicationDelegate (Menus)
|
@implementation QCocoaApplicationDelegate (Menus)
|
||||||
|
Loading…
Reference in New Issue
Block a user