Commit a3052c39 authored by Elvis Angelaccio's avatar Elvis Angelaccio
Browse files

DolphinView: rename new methods to copy/move urls

DolphinView doesn't know anything about split views and it shouldn't.
Rename these new methods to what they actually do (just copy or move to a
given QUrl).
parent 1ee665ba
......@@ -330,10 +330,10 @@ void DolphinTabWidget::copyToInactiveSplitView()
if (tabPage->primaryViewActive()) {
// copy from left panel to right
activeViewContainer->view()->copySelectedItemsToInactiveSplitView(activeViewContainer->view()->selectedItems(), tabPage->secondaryViewContainer()->url());
activeViewContainer->view()->copySelectedItems(activeViewContainer->view()->selectedItems(), tabPage->secondaryViewContainer()->url());
} else {
// copy from right panel to left
activeViewContainer->view()->copySelectedItemsToInactiveSplitView(activeViewContainer->view()->selectedItems(), tabPage->primaryViewContainer()->url());
activeViewContainer->view()->copySelectedItems(activeViewContainer->view()->selectedItems(), tabPage->primaryViewContainer()->url());
}
}
......@@ -347,10 +347,10 @@ void DolphinTabWidget::moveToInactiveSplitView()
if (tabPage->primaryViewActive()) {
// move from left panel to right
activeViewContainer->view()->moveSelectedItemsToInactiveSplitView(activeViewContainer->view()->selectedItems(), tabPage->secondaryViewContainer()->url());
activeViewContainer->view()->moveSelectedItems(activeViewContainer->view()->selectedItems(), tabPage->secondaryViewContainer()->url());
} else {
// move from right panel to left
activeViewContainer->view()->moveSelectedItemsToInactiveSplitView(activeViewContainer->view()->selectedItems(), tabPage->primaryViewContainer()->url());
activeViewContainer->view()->moveSelectedItems(activeViewContainer->view()->selectedItems(), tabPage->primaryViewContainer()->url());
}
}
......
......@@ -692,7 +692,7 @@ void DolphinView::copySelectedItemsToClipboard()
QApplication::clipboard()->setMimeData(mimeData);
}
void DolphinView::copySelectedItemsToInactiveSplitView(const KFileItemList &selection, const QUrl &destinationUrl)
void DolphinView::copySelectedItems(const KFileItemList &selection, const QUrl &destinationUrl)
{
KIO::CopyJob* job = KIO::copy(selection.urlList(), destinationUrl, KIO::DefaultFlags);
KJobWidgets::setWindow(job, this);
......@@ -702,7 +702,7 @@ void DolphinView::copySelectedItemsToInactiveSplitView(const KFileItemList &sele
KIO::FileUndoManager::self()->recordCopyJob(job);
}
void DolphinView::moveSelectedItemsToInactiveSplitView(const KFileItemList &selection, const QUrl &destinationUrl)
void DolphinView::moveSelectedItems(const KFileItemList &selection, const QUrl &destinationUrl)
{
KIO::CopyJob* job = KIO::move(selection.urlList(), destinationUrl, KIO::DefaultFlags);
KJobWidgets::setWindow(job, this);
......
......@@ -371,16 +371,14 @@ public slots:
void copySelectedItemsToClipboard();
/**
* Copies all selected items to the inactive split view.
* Only used in Split View.
* Copies all selected items to @p destinationUrl.
*/
void copySelectedItemsToInactiveSplitView(const KFileItemList &selection, const QUrl &destinationUrl);
void copySelectedItems(const KFileItemList &selection, const QUrl &destinationUrl);
/**
* Moves all selected items to the inactive split view.
* Only used in Split View.
* Moves all selected items to @p destinationUrl.
*/
void moveSelectedItemsToInactiveSplitView(const KFileItemList &selection, const QUrl &destinationUrl);
void moveSelectedItems(const KFileItemList &selection, const QUrl &destinationUrl);
/** Pastes the clipboard data to this view. */
void paste();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment