Support non-desktop platforms better with QDragManager.
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>
Mon, 25 Jul 2011 07:12:39 +0000 (10:12 +0300)
committerSamuel Rødal <samuel.rodal@nokia.com>
Mon, 25 Jul 2011 12:58:19 +0000 (14:58 +0200)
commit9ce5297cc506b16ffefaf018952ed2bf20ceb46b
tree29fef5030a4269f407ec653e07ab65da215053ab
parentd78a6773050d0abb5b211a33f688abbb2eb43f53
Support non-desktop platforms better with QDragManager.

By default QDragManager brings in a number of "desktopisms" (e.g. that
a drag is always controlled by mouse events, can be cancelled with some
key press, etc.), these assumptions are not necessarily suitable for
all QPA platforms. Therefore there has to be a way to disable this
built-in event handling, and let the QPlaformDrag decide how the drag
is controlled and when it ends.

Change-Id: Ie9fa2df7ba1e30dd1c6e2cff406490e36be73c4f
Reviewed-on: http://codereview.qt.nokia.com/2085
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/gui/kernel/qdnd.cpp
src/gui/kernel/qdnd_p.h