summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qcocoawindowdelegate_mac_p.h
diff options
context:
space:
mode:
authorPrasanth Ullattil <prasanth.ullattil@nokia.com>2009-11-02 14:34:15 (GMT)
committerPrasanth Ullattil <prasanth.ullattil@nokia.com>2009-11-02 14:50:09 (GMT)
commitf1132e60e0759d8be043a2c4312915b3103004ff (patch)
treecd29f8e683018aa3eafb0dd6618a4b1f1370b74f /src/gui/kernel/qcocoawindowdelegate_mac_p.h
parentd55483a656285d30095ab002ec8380340842c89c (diff)
downloadQt-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.h2
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>