m_container->m_dolphinViewController->setItemView(this);
const QModelIndex dolphinModelIndex = m_proxyModel->mapToSource(index);
const KFileItem item = m_dolphinModel->itemForIndex(dolphinModelIndex);
- m_container->m_dolphinViewController->indicateDroppedUrls(item, url(), event);
+ m_container->m_dolphinViewController->indicateDroppedUrls(item, event);
DolphinTreeView::dropEvent(event);
}
DolphinTreeView(parent),
m_autoResize(true),
m_dolphinViewController(dolphinViewController),
- m_viewModeController(viewModeController),
m_extensionsFactory(0),
m_expandableFoldersAction(0),
m_expandedUrls(),
if (index.isValid() && (index.column() == DolphinModel::Name)) {
item = m_dolphinViewController->itemForIndex(index);
}
- m_dolphinViewController->indicateDroppedUrls(item, m_viewModeController->url(), event);
+ m_dolphinViewController->indicateDroppedUrls(item, event);
DolphinTreeView::dropEvent(event);
}
bool m_autoResize; // if true, the columns are resized automatically to the available width
DolphinViewController* m_dolphinViewController;
- const ViewModeController* m_viewModeController;
ViewExtensionsFactory* m_extensionsFactory;
QAction* m_expandableFoldersAction;
DolphinSortFilterProxyModel* proxyModel) :
KCategorizedView(parent),
m_dolphinViewController(dolphinViewController),
- m_viewModeController(viewModeController),
m_categoryDrawer(new DolphinCategoryDrawer(this)),
m_extensionsFactory(0),
m_font(),
{
const QModelIndex index = indexAt(event->pos());
const KFileItem item = m_dolphinViewController->itemForIndex(index);
- m_dolphinViewController->indicateDroppedUrls(item, m_viewModeController->url(), event);
+ m_dolphinViewController->indicateDroppedUrls(item, event);
// don't call KCategorizedView::dropEvent(event), as it moves
// the items which is not wanted
}
private:
DolphinViewController* m_dolphinViewController;
- const ViewModeController* m_viewModeController;
DolphinCategoryDrawer* m_categoryDrawer;
ViewExtensionsFactory* m_extensionsFactory;
emit activated();
}
-void DolphinViewController::indicateDroppedUrls(const KFileItem& destItem,
- const KUrl& destPath,
- QDropEvent* event)
+void DolphinViewController::indicateDroppedUrls(const KFileItem& destItem, QDropEvent* event)
{
- emit urlsDropped(destItem, destPath, event);
+ emit urlsDropped(destItem, m_dolphinView->url(), event);
}
* Indicates that URLs are dropped above a destination. The DolphinView
* will start the corresponding action (copy, move, link).
* @param destItem Item of the destination (can be null, see KFileItem::isNull()).
- * @param destPath Path of the destination.
* @param event Drop event
*/
- void indicateDroppedUrls(const KFileItem& destItem,
- const KUrl& destPath,
- QDropEvent* event);
+ void indicateDroppedUrls(const KFileItem& destItem, QDropEvent* event);
/**
* Informs the DolphinView about a sorting change done inside