]> cloud.milkyroute.net Git - dolphin.git/commitdiff
There we go. Fix this bug :)
authorRafael Fernández López <ereslibre@kde.org>
Mon, 17 Dec 2007 20:06:46 +0000 (20:06 +0000)
committerRafael Fernández López <ereslibre@kde.org>
Mon, 17 Dec 2007 20:06:46 +0000 (20:06 +0000)
BUG: 153420

svn path=/trunk/KDE/kdebase/apps/; revision=749755

src/dolphinsortfilterproxymodel.cpp
src/draganddrophelper.cpp

index 563d1e4e89774b45a2d1d789566cc9b1bdce4d87..d6d3c6c5f82f2df5fd6d8f2e589aae82dfffb569 100644 (file)
@@ -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()
index 0148f731b86e95875d79dec320af2ca622923b46..9aa09ee3049134b0ec8d6cff685b2db6c53f0522 100644 (file)
@@ -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);
     }
 }