54 #ifdef QT_MAC_USE_COCOA 55 #import <Cocoa/Cocoa.h> 60 #if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_5 62 @protocol NSMenuDelegate <NSObject>
63 - (void)menu:(NSMenu*)menu willHighlightItem:(
NSMenuItem*)item;
64 - (void)menuWillOpen:(NSMenu*)menu;
65 - (void)menuDidClose:(NSMenu*)menu;
66 - (BOOL)hasShortcut:(NSMenu *)menu forKey:(NSString *)key forModifiers:(NSUInteger)modifier
72 @interface QT_MANGLE_NAMESPACE(QCocoaMenu) : NSMenu <NSMenuDelegate>
77 - (id)initWithQMenu:(
QMenu*)menu;
78 - (BOOL)menuHasKeyEquivalent:(NSMenu *)menu forEvent:(NSEvent *)event target:(
id *)target action:(
SEL *)action;
79 - (NSInteger)indexOfItemWithTarget:(
id)anObject andAction:(
SEL)actionSelector;
#define QT_FORWARD_DECLARE_CLASS(name)
The QAction class provides an abstract user interface action that can be inserted into widgets...