diff options
author | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2009-11-02 14:34:15 (GMT) |
---|---|---|
committer | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2009-11-02 14:50:09 (GMT) |
commit | f1132e60e0759d8be043a2c4312915b3103004ff (patch) | |
tree | cd29f8e683018aa3eafb0dd6618a4b1f1370b74f /src/gui/kernel/qcocoawindowdelegate_mac_p.h | |
parent | d55483a656285d30095ab002ec8380340842c89c (diff) | |
download | Qt-f1132e60e0759d8be043a2c4312915b3103004ff.zip Qt-f1132e60e0759d8be043a2c4312915b3103004ff.tar.gz Qt-f1132e60e0759d8be043a2c4312915b3103004ff.tar.bz2 |
Titlebar icon (for e.g. Assistant) not visible in Cocoa.
standardWindowButton:NSWindowDocumentIconButton will not return a valid
NSButton unless you call setRepresentedURL or setRepresentedFilename
for the NSWindow. This patch makes sure that setWindowIcon_sys() sets
the icon using a valid NSButton.
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@nokia.com>
Diffstat (limited to 'src/gui/kernel/qcocoawindowdelegate_mac_p.h')
-rw-r--r-- | src/gui/kernel/qcocoawindowdelegate_mac_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qcocoawindowdelegate_mac_p.h b/src/gui/kernel/qcocoawindowdelegate_mac_p.h index a06c516..3728002 100644 --- a/src/gui/kernel/qcocoawindowdelegate_mac_p.h +++ b/src/gui/kernel/qcocoawindowdelegate_mac_p.h @@ -76,6 +76,8 @@ QT_FORWARD_DECLARE_CLASS(QWidgetData) - (void)windowDidResignMain:(NSNotification*)notification; - (void)windowDidBecomeKey:(NSNotification*)notification; - (void)windowDidResignKey:(NSNotification*)notification; +- (BOOL)window:(NSWindow *)window shouldPopUpDocumentPathMenu:(NSMenu *)menu; +- (BOOL)window:(NSWindow *)window shouldDragDocumentWithEvent:(NSEvent *)event from:(NSPoint)dragImageLocation withPasteboard:(NSPasteboard *)pasteboard; @end @protocol NSDrawerDelegate <NSObject> |