diff options
| author | Peter Penz <[email protected]> | 2008-10-24 22:19:23 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-10-24 22:19:23 +0000 |
| commit | e7bd514a39f0b07ddfec85f5f7b391e16af7d279 (patch) | |
| tree | ea10c9444acfed8339121c9d884c024445f8067b /src/dolphiniconsview.cpp | |
| parent | a96437d600ac1dad74084dff3fcd870cd8eb5024 (diff) | |
* Move code from DolphinDropController to DragAndDropHelper.
* Move code which checks whether the dragging of a MIME type is supported to DragAndDropHelper. This allows adding an improved support for dropping compressed files from Ark to Dolphin later...
CCMAIL: [email protected]
svn path=/trunk/KDE/kdebase/apps/; revision=875611
Diffstat (limited to 'src/dolphiniconsview.cpp')
| -rw-r--r-- | src/dolphiniconsview.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dolphiniconsview.cpp b/src/dolphiniconsview.cpp index 83379e279..e5578df32 100644 --- a/src/dolphiniconsview.cpp +++ b/src/dolphiniconsview.cpp @@ -214,7 +214,7 @@ void DolphinIconsView::startDrag(Qt::DropActions supportedActions) void DolphinIconsView::dragEnterEvent(QDragEnterEvent* event) { - if (event->mimeData()->hasUrls()) { + if (DragAndDropHelper::isMimeDataSupported(event->mimeData())) { event->acceptProposedAction(); } } @@ -242,7 +242,7 @@ void DolphinIconsView::dragMoveEvent(QDragMoveEvent* event) m_dropRect.setSize(QSize()); // set as invalid } } - if (event->mimeData()->hasUrls()) { + if (DragAndDropHelper::isMimeDataSupported(event->mimeData())) { // accept url drops, independently from the destination item event->acceptProposedAction(); } |
