]> cloud.milkyroute.net Git - dolphin.git/commitdiff
KonqOperations: KIO::pasteMimeData -> KIO::paste, update signal and simplify dolphin...
authorDavid Faure <faure@kde.org>
Sun, 2 Nov 2014 16:17:24 +0000 (17:17 +0100)
committerDavid Faure <faure@kde.org>
Sun, 2 Nov 2014 16:17:24 +0000 (17:17 +0100)
src/views/dolphinview.cpp
src/views/dolphinview.h

index 7228b1131111123d476d3ca9ddb859f096b75e4d..782cc19f2f501b640117bd62a076fd979a994721 100644 (file)
@@ -1050,9 +1050,7 @@ void DolphinView::slotItemDropEvent(int index, QGraphicsSceneDragDropEvent* even
         // Mark the dropped urls as selected.
         m_clearSelectionBeforeSelectingNewItems = true;
         m_markFirstNewlySelectedItemAsCurrent = true;
-        connect(job, static_cast<void(KonqOperations::*)(const QList<QUrl>&)>(&KonqOperations::aboutToCreate), this, &DolphinView::slotAboutToCreate);
-        // TODO
-        //connect(job, &KIO::InteractiveDropJob::itemCreated, this, &DolphinView::slotItemCreated);
+        connect(job, &KonqOperations::itemCreated, this, &DolphinView::slotItemCreated);
         //connect(job, &KIO::InteractiveDropJob::result, this, &DolphinView::slotPasteJobResult);
     }
 
@@ -1089,17 +1087,6 @@ void DolphinView::slotMouseButtonPressed(int itemIndex, Qt::MouseButtons buttons
     }
 }
 
-void DolphinView::slotAboutToCreate(const QList<QUrl>& urls)
-{
-    if (!urls.isEmpty()) {
-        if (m_markFirstNewlySelectedItemAsCurrent) {
-            markUrlAsCurrent(urls.first());
-            m_markFirstNewlySelectedItemAsCurrent = false;
-        }
-        m_selectedUrls << KDirModel::simplifiedUrlList(urls);
-    }
-}
-
 void DolphinView::slotItemCreated(const QUrl& url)
 {
     if (m_markFirstNewlySelectedItemAsCurrent) {
index 2f7b63dd5572872301657e32c06ec36d0e5579d4..7e5eca3a163a7ee3138305e2a0cad6efdfa2d60c 100644 (file)
@@ -577,7 +577,6 @@ private slots:
      * Is called after all pasted or dropped items have been copied to destination.
      */
     void slotPasteJobResult(KJob *job);
-    void slotAboutToCreate(const QList<QUrl> &urls);
 
     /**
      * Emits the signal \a selectionChanged() with a small delay. This is