summaryrefslogtreecommitdiffstats
path: root/mkspecs/win32-msvc2013/qmake.conf
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dedietrich@digia.com>2014-02-26 20:05:00 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-04 11:29:30 +0100
commit28c9c2ea50e54236d5975f263ee1d28d831223aa (patch)
tree9858fc926b880486ed58c4e7d217bf682cb82bd1 /mkspecs/win32-msvc2013/qmake.conf
parent018d1ca5f3209949cb7e8e1306250ec030fee929 (diff)
Cocoa: Keep child NSWindow alive while it grabs the mouse
Otherwise, Cocoa loses sight on which window to send the dragging mouse event. If the window is kept alive (but hidden) Cocoa will send the events to it, and we can forward them to the actual QWindow. This is the expected use-case: 1. Start dragging a QWindow and change its flags. 2. This triggers a call to QCocoaWindow::recreateWindow(), which will get rid of the old NSWindow and create a new one (the QNSView is moved to the new NSWindow). 3. When we stop dragging, the NSWindow is finally destroyed. QNSView Pointer References Remarks: In QNSView, m_window points to the QWindow which remains unchanged until deleted. Similarly m_platformWindow remains valid until deleted, in which case we delete the QNSView, the NSWindow and its helper (see QCocoaWindow destructor). This fixes undocking QToolBars when they are a child NSWindow. Task-number: QTBUG-33082 Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com> Change-Id: I6fc53292cd96586cfdf401481c5442d759f1fae5 Reviewed-by: Liang Qi <liang.qi@digia.com>
Diffstat (limited to 'mkspecs/win32-msvc2013/qmake.conf')
0 files changed, 0 insertions, 0 deletions