┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dolphinsortfilterproxymodel.cpp1
-rw-r--r--src/draganddrophelper.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/dolphinsortfilterproxymodel.cpp b/src/dolphinsortfilterproxymodel.cpp
index 563d1e4e8..d6d3c6c5f 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 0148f731b..9aa09ee30 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);
}
}