From 214ee5de3fab8db92db116496b73200e466b41de Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Thu, 25 Jan 2007 16:56:52 +0000 Subject: Use KNewMenu instead of custom implementation of Dolphin. TODO: currently errors are indicated automatically in a message box KNewMenu. In Dolphin modal dialogs having only an "OK" button are not used -> it would be nice if Dolphin could handle the errors in a custom way. svn path=/trunk/playground/utils/dolphin/; revision=627085 --- src/dolphinview.cpp | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) (limited to 'src/dolphinview.cpp') diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp index 26259df87..90383348d 100644 --- a/src/dolphinview.cpp +++ b/src/dolphinview.cpp @@ -555,25 +555,9 @@ void DolphinView::reload() startDirLister(m_urlNavigator->url(), true); } -void DolphinView::slotUrlListDropped(QDropEvent* /* event */, - const KUrl::List& urls, - const KUrl& url) +void DolphinView::declareViewActive() { - KUrl destination(url); - if (destination.isEmpty()) { - destination = m_urlNavigator->url(); - } - else { - // Check whether the destination Url is a directory. If this is not the - // case, use the navigator Url as destination (otherwise the destination, - // which represents a file, would be replaced by a copy- or move-operation). - KFileItem fileItem(KFileItem::Unknown, KFileItem::Unknown, destination); - if (!fileItem.isDir()) { - destination = m_urlNavigator->url(); - } - } - - mainWindow()->dropUrls(urls, destination); + mainWindow()->setActiveView( this ); } void DolphinView::mouseReleaseEvent(QMouseEvent* event) @@ -833,11 +817,6 @@ void DolphinView::showFilterBar(bool show) } } -void DolphinView::declareViewActive() -{ - mainWindow()->setActiveView( this ); -} - void DolphinView::updateStatusBar() { // As the item count information is less important -- cgit v1.3