summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel
diff options
context:
space:
mode:
authorNorwegian Rock Cat <qt-info@nokia.com>2009-04-15 10:11:39 (GMT)
committerNorwegian Rock Cat <qt-info@nokia.com>2009-04-15 10:17:06 (GMT)
commitb4234ab3f4dbd8c7017d749888b2d8effd3c5983 (patch)
tree6be863fea37b64cb9950da2274cbe6a4423ab401 /src/corelib/kernel
parenta55f477b2a40b89e690fe6b61509cf665e96243b (diff)
downloadQt-b4234ab3f4dbd8c7017d749888b2d8effd3c5983.zip
Qt-b4234ab3f4dbd8c7017d749888b2d8effd3c5983.tar.gz
Qt-b4234ab3f4dbd8c7017d749888b2d8effd3c5983.tar.bz2
BT: Fix Cocoa bug w/OpenGL widgets in dock widgets would disappear.
The NSOpenGLContext seems to be tied to the window. So if the view changes from one window to another, the OpenGL context needs to be cleared. We can do this by hooking into the viewWillChangeWindow and viewDidChangeWindow events and clear and reset the drawable respectively. We also found out that QCocoaOpenGLView was not being used at all, so just remove it to get rid of any confusion. Task-number: 250066 Reviewed-by: Trond
Diffstat (limited to 'src/corelib/kernel')
-rw-r--r--src/corelib/kernel/qcoreevent.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/kernel/qcoreevent.h b/src/corelib/kernel/qcoreevent.h
index 5487703..fa472e6 100644
--- a/src/corelib/kernel/qcoreevent.h
+++ b/src/corelib/kernel/qcoreevent.h
@@ -264,6 +264,7 @@ public:
GrabKeyboard = 188,
UngrabKeyboard = 189,
CocoaRequestModal = 190, // Internal for requesting an application modal Cocoa Window
+ MacGLClearDrawable = 191, // Internal Cocoa, the window has changed, so we must clear
// 512 reserved for Qt Jambi's MetaCall event
// 513 reserved for Qt Jambi's DeleteOnMainThread event