summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qdnd_s60.cpp
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@sosco.com>2009-10-12 18:57:53 +0200
committerShane Kearns <shane.kearns@sosco.com>2009-10-12 19:31:53 +0200
commit2eca30ab9d9bed3afc08d5b300c5820cae3b0083 (patch)
tree0f7226e077074f4c62342ae850e784ef6a9a2c44 /src/gui/kernel/qdnd_s60.cpp
parent38b95b106cfd3949e6830fd516fbc31333b6ac5f (diff)
Fix default action in s60 drag'n'drop manager
Default action was always MoveAction, which removed the data from the source widget, even if not accepted anywhere. Now uses the default action from the base class manager. Task-number: QT-736 Task-number: QTBUG-4356 Reviewed-by: Aleksandar Sasha Babic
Diffstat (limited to 'src/gui/kernel/qdnd_s60.cpp')
-rw-r--r--src/gui/kernel/qdnd_s60.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/kernel/qdnd_s60.cpp b/src/gui/kernel/qdnd_s60.cpp
index 3d6ecd2ab8..a8d3ac550e 100644
--- a/src/gui/kernel/qdnd_s60.cpp
+++ b/src/gui/kernel/qdnd_s60.cpp
@@ -277,7 +277,7 @@ Qt::DropAction QDragManager::drag(QDrag *o)
qApp->installEventFilter(this);
- global_accepted_action = Qt::MoveAction;
+ global_accepted_action = defaultAction(dragPrivate()->possible_actions, Qt::NoModifier);
qt_symbian_dnd_dragging = true;
eventLoop = new QEventLoop;
@@ -288,7 +288,7 @@ Qt::DropAction QDragManager::drag(QDrag *o)
#ifndef QT_NO_CURSOR
qt_symbian_set_cursor_visible(false);
-
+
overrideCursor = QCursor(); //deref the cursor data
qt_symbian_dnd_dragging = false;
#endif