Refactor the QPA dnd interface.
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Wed, 22 Feb 2012 09:58:28 +0000 (10:58 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 29 Feb 2012 19:10:30 +0000 (20:10 +0100)
commit3a72a1c7ed5adcdf3e473b50cc9c932e9290ee81
treec9c6ab476e935c1141675382c051ef86e003440d
parent70784b9069fbd1c73eddbbfc83ffb44b2ca15854
Refactor the QPA dnd interface.

- Give QPlatformDrag a synchronous drag() function returning
  the Qt::DropAction
- Move the base functionality for asynchronous event handling
  to the platformsupport library as QBasicDrag (extendable base class
  handling drag icon and providing new virtuals)  and QSimpleDrag
  (sample implementation for drag within the Qt application).
- Change the Windows implementation accordingly.
- Change XCB to be based on QBasicDrag.
- Clean up QDragManager.

Change-Id: I654f76f0e55a385ba189bd74f3ceaded6a8fe318
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
25 files changed:
src/gui/kernel/kernel.pri
src/gui/kernel/qdnd.cpp
src/gui/kernel/qdnd_p.h
src/gui/kernel/qdrag.cpp
src/gui/kernel/qdrag.h
src/gui/kernel/qevent.cpp
src/gui/kernel/qguiapplication.cpp
src/gui/kernel/qguiapplication_p.h
src/gui/kernel/qplatformdrag_qpa.cpp [new file with mode: 0644]
src/gui/kernel/qplatformdrag_qpa.h
src/gui/kernel/qwindowsysteminterface_qpa.cpp
src/gui/kernel/qwindowsysteminterface_qpa.h
src/platformsupport/dnd/dnd.pri
src/platformsupport/dnd/qshapedpixmapdndwindow.cpp [new file with mode: 0644]
src/platformsupport/dnd/qshapedpixmapdndwindow_p.h [new file with mode: 0644]
src/platformsupport/dnd/qsimpledrag.cpp
src/platformsupport/dnd/qsimpledrag_p.h
src/plugins/platforms/windows/qwindowsdrag.cpp
src/plugins/platforms/windows/qwindowsdrag.h
src/plugins/platforms/xcb/qxcbconnection.cpp
src/plugins/platforms/xcb/qxcbdrag.cpp
src/plugins/platforms/xcb/qxcbdrag.h
src/plugins/platforms/xcb/qxcbwindow.cpp
src/widgets/itemviews/qitemdelegate.cpp
src/widgets/itemviews/qstyleditemdelegate.cpp