summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qcocoapanel_mac_p.h
diff options
context:
space:
mode:
authorFabien Freling <fabien.freling@nokia.com>2011-03-04 10:41:04 (GMT)
committerFabien Freling <fabien.freling@nokia.com>2011-03-04 11:15:20 (GMT)
commit40d090ee98ac9088f3fb40c1778f84fd516f5bee (patch)
treeec683c46e32e53ade5da423eb435887f2b01bb2b /src/gui/kernel/qcocoapanel_mac_p.h
parent1766bbdb53e1e20a1bbfb523bbbbe38ea7ab7b3d (diff)
downloadQt-40d090ee98ac9088f3fb40c1778f84fd516f5bee.zip
Qt-40d090ee98ac9088f3fb40c1778f84fd516f5bee.tar.gz
Qt-40d090ee98ac9088f3fb40c1778f84fd516f5bee.tar.bz2
Fix compiling issue on Lion.
On Lion, we have to declare the dragging methods before implementing them. Reviewed-by: Prasanth Ullattil
Diffstat (limited to 'src/gui/kernel/qcocoapanel_mac_p.h')
-rw-r--r--src/gui/kernel/qcocoapanel_mac_p.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/kernel/qcocoapanel_mac_p.h b/src/gui/kernel/qcocoapanel_mac_p.h
index b41a4b5..5426159 100644
--- a/src/gui/kernel/qcocoapanel_mac_p.h
+++ b/src/gui/kernel/qcocoapanel_mac_p.h
@@ -60,6 +60,13 @@
QT_FORWARD_DECLARE_CLASS(QStringList);
QT_FORWARD_DECLARE_CLASS(QCocoaDropData);
+@interface NSPanel (QtIntegration)
+- (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender;
+- (NSDragOperation)draggingUpdated:(id <NSDraggingInfo>)sender;
+- (void)draggingExited:(id <NSDraggingInfo>)sender;
+- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender;
+@end
+
@interface QT_MANGLE_NAMESPACE(QCocoaPanel) : NSPanel {
QStringList *currentCustomDragTypes;
QCocoaDropData *dropData;