summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qplatformdrag.h
diff options
context:
space:
mode:
authorGatis Paeglis <gatis.paeglis@theqtcompany.com>2015-01-07 13:51:38 +0100
committerJani Heikkinen <jani.heikkinen@theqtcompany.com>2015-01-19 08:15:54 +0100
commit3c21c4581dbd957d9f660dd52d0298ecef1001cb (patch)
tree5d510bc151f053e63acd572d5e9e626c772b128d /src/gui/kernel/qplatformdrag.h
parent5bb2e84a764f611cf4470f2ddc0bb427c4d110cc (diff)
Fix drag and drop regression
Fix regression introduced by e4becdc3d310a0dd1a6d34d0796a52b21dedeb2d Add QPlatformDrag::ownsDragObject() function, QDragManager can use the return value of this function to decide if it should take care of deleting QDrag object or platform plugin will take care of deleting QDrag. XCB platform plugins uses async dnd data delivery mechanism. It allows user to drop something and then continue working with the assurance that the target will get the data regardless of how slow the network connections are, which means that a source window should preserve QDrag data until dnd has finished. Change-Id: I1fbad7380cddec98b756698993dd397409833150 Task-number: QTBUG-43436 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Diffstat (limited to 'src/gui/kernel/qplatformdrag.h')
-rw-r--r--src/gui/kernel/qplatformdrag.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qplatformdrag.h b/src/gui/kernel/qplatformdrag.h
index 34ad11e45f..ce7a9aa1f2 100644
--- a/src/gui/kernel/qplatformdrag.h
+++ b/src/gui/kernel/qplatformdrag.h
@@ -98,6 +98,8 @@ public:
static QPixmap defaultPixmap();
+ virtual bool ownsDragObject() const;
+
private:
QPlatformDragPrivate *d_ptr;