From 784c525225437a7d9cc130bb84e492d1b21be1ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Fern=C3=A1ndez=20L=C3=B3pez?= Date: Mon, 17 Dec 2007 20:06:46 +0000 Subject: [PATCH] There we go. Fix this bug :) BUG: 153420 svn path=/trunk/KDE/kdebase/apps/; revision=749755 --- src/dolphinsortfilterproxymodel.cpp | 1 + src/draganddrophelper.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dolphinsortfilterproxymodel.cpp b/src/dolphinsortfilterproxymodel.cpp index 563d1e4e89..d6d3c6c5f8 100644 --- a/src/dolphinsortfilterproxymodel.cpp +++ b/src/dolphinsortfilterproxymodel.cpp @@ -55,6 +55,7 @@ DolphinSortFilterProxyModel::DolphinSortFilterProxyModel(QObject* parent) : m_sorting(DolphinView::SortByName), m_sortOrder(Qt::AscendingOrder) { + setSupportedDragActions(Qt::CopyAction | Qt::MoveAction | Qt::LinkAction | Qt::IgnoreAction); } DolphinSortFilterProxyModel::~DolphinSortFilterProxyModel() diff --git a/src/draganddrophelper.cpp b/src/draganddrophelper.cpp index 0148f731b8..9aa09ee304 100644 --- a/src/draganddrophelper.cpp +++ b/src/draganddrophelper.cpp @@ -54,7 +54,7 @@ void DragAndDropHelper::startDrag(QAbstractItemView* itemView, Qt::DropActions s } drag->setPixmap(pixmap); drag->setMimeData(data); - drag->exec(supportedActions); + drag->exec(supportedActions, Qt::MoveAction); } }