QTBUG-26296, dock widget moving
authorJames Turner <james.turner@kdab.com>
Fri, 6 Jul 2012 11:28:44 +0000 (12:28 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 23 Jul 2012 15:12:57 +0000 (17:12 +0200)
commit78d8c201f16374df4d5b8682f9eda2885125e1a6
tree7b25d860559f35cb164f3e2a5fe76f0e6cffaf17
parent2dc1722b9eda058748b19b6401a56cb764072599
QTBUG-26296, dock widget moving

Cocoa lacked implementation of FrameStrut events, and also frameMargins on
QPlatformWindow. Fix both of these issues. Unfortunately QDockWidget also
contains a tangle of #ifdef MAC behaviour which I am unclear about. What's
included here disables some logic on Mac that seems definitely wrong -
while moving a window on Mac we now generate NonClientArea events
(as intended, I believe), but this should not cause dock-widget dragging to end.

Note the window titlebar is the only frame-strut/non-client area on Mac (as far as I can see)

Task-number: QTBUG-26296
Change-Id: Id0c6e954db64b9f9f71d16355cb92922877e5ebe
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
src/plugins/platforms/cocoa/qcocoawindow.h
src/plugins/platforms/cocoa/qcocoawindow.mm
src/plugins/platforms/cocoa/qnsview.h
src/plugins/platforms/cocoa/qnsview.mm
src/widgets/styles/qmacstyle_mac.mm
src/widgets/widgets/qdockwidget.cpp