diff options
| author | Peter Penz <[email protected]> | 2007-01-25 16:56:52 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-01-25 16:56:52 +0000 |
| commit | 214ee5de3fab8db92db116496b73200e466b41de (patch) | |
| tree | 261263d71eb1a88acb979c0b99120e955e23e9c9 /src/dolphinview.cpp | |
| parent | 78d1167c38be4318114aa8ae4b7d433c12f86b77 (diff) | |
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
Diffstat (limited to 'src/dolphinview.cpp')
| -rw-r--r-- | src/dolphinview.cpp | 25 |
1 files changed, 2 insertions, 23 deletions
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 |
