diff options
author | Morten Johan Sørvig <morten.sorvig@nokia.com> | 2009-11-24 09:56:54 (GMT) |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@nokia.com> | 2009-11-24 09:56:54 (GMT) |
commit | a51ccecc887c38fe9d067e52ca99d3ec78e64c2a (patch) | |
tree | 84eb57bbc5d8e740a55fac1307a09b0e7f9c8cdc /src/gui/widgets/qcocoamenu_mac_p.h | |
parent | 8226392be3ea450f8b3f418fb4defd6dc36210f8 (diff) | |
download | Qt-a51ccecc887c38fe9d067e52ca99d3ec78e64c2a.zip Qt-a51ccecc887c38fe9d067e52ca99d3ec78e64c2a.tar.gz Qt-a51ccecc887c38fe9d067e52ca99d3ec78e64c2a.tar.bz2 |
Implement menu hovering for native Mac menus.
Set the status text, emit QMenu::hovered and
QAction::hovered.
Diffstat (limited to 'src/gui/widgets/qcocoamenu_mac_p.h')
-rw-r--r-- | src/gui/widgets/qcocoamenu_mac_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/widgets/qcocoamenu_mac_p.h b/src/gui/widgets/qcocoamenu_mac_p.h index 0c8989a..3ad0ab8 100644 --- a/src/gui/widgets/qcocoamenu_mac_p.h +++ b/src/gui/widgets/qcocoamenu_mac_p.h @@ -52,6 +52,7 @@ #include "qmacdefines_mac.h" #ifdef QT_MAC_USE_COCOA +#include <qpointer.h> #import <Cocoa/Cocoa.h> QT_FORWARD_DECLARE_CLASS(QMenu) @@ -71,6 +72,7 @@ QT_FORWARD_DECLARE_CLASS(QMenu) @interface QT_MANGLE_NAMESPACE(QCocoaMenu) : NSMenu <NSMenuDelegate> { QMenu *qmenu; + QPointer<QAction> previousAction; } - (id)initWithQMenu:(QMenu*)menu; - (BOOL)menuHasKeyEquivalent:(NSMenu *)menu forEvent:(NSEvent *)event target:(id *)target action:(SEL *)action; |