diff options
| author | Laurent Montel <[email protected]> | 2006-11-22 08:22:45 +0000 |
|---|---|---|
| committer | Laurent Montel <[email protected]> | 2006-11-22 08:22:45 +0000 |
| commit | 20b58b6c03f6fa56d0cc1da90c13658664c153f1 (patch) | |
| tree | 1ac95537c3d0c6f35e5ca9dbbf7fe9c90e14a3b7 /src/dolphincontextmenu.cpp | |
| parent | 6987f297e6e275a1f46aa0f33919e86684c9ed8b (diff) | |
Some port
Remove not necessary file
svn path=/trunk/playground/utils/dolphin/; revision=606884
Diffstat (limited to 'src/dolphincontextmenu.cpp')
| -rw-r--r-- | src/dolphincontextmenu.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/dolphincontextmenu.cpp b/src/dolphincontextmenu.cpp index bea01afc4..e3313a89b 100644 --- a/src/dolphincontextmenu.cpp +++ b/src/dolphincontextmenu.cpp @@ -38,6 +38,8 @@ #include <assert.h> #include <ksortablevaluelist.h> #include <kio/netaccess.h> +#include <kmenu.h> +#include <kstdaction.h> #include "dolphin.h" #include "dolphinview.h" @@ -111,7 +113,7 @@ void DolphinContextMenu::openViewportContextMenu() // ++linkGroupIt; //} // - //KPopupMenu* linkToDeviceMenu = new KPopupMenu(); + //KMenu* linkToDeviceMenu = new KMenu(); //QPtrListIterator<KAction> linkToDeviceIt(dolphin.linkToDeviceActions()); //while ((action = linkToDeviceIt.current()) != 0) { // action->plug(linkToDeviceMenu); @@ -151,9 +153,9 @@ void DolphinContextMenu::openViewportContextMenu() new KPropertiesDialog(dolphin.activeView()->url()); } else if (id == bookmarkID) { - const KURL& url = dolphin.activeView()->url(); + const KUrl& url = dolphin.activeView()->url(); KBookmark bookmark = EditBookmarkDialog::getBookmark(i18n("Add folder as bookmark"), - url.filename(), + url.fileName(), url, "bookmark"); if (!bookmark.isNull()) { @@ -178,7 +180,7 @@ void DolphinContextMenu::openItemContextMenu() KMenu* popup = new KMenu(m_dolphinView); Dolphin& dolphin = Dolphin::mainWin(); - const KURL::List urls = m_dolphinView->selectedURLs(); + const KUrl::List urls = m_dolphinView->selectedURLs(); // insert 'Cut', 'Copy' and 'Paste' const KStdAction::StdAction actionNames[] = { KStdAction::Cut, KStdAction::Copy, KStdAction::Paste }; @@ -196,7 +198,7 @@ void DolphinContextMenu::openItemContextMenu() renameAction->plug(popup); // insert 'Move to Trash' for local URLs, otherwise insert 'Delete' - const KURL& url = dolphin.activeView()->url(); + const KUrl& url = dolphin.activeView()->url(); if (url.isLocalFile()) { KAction* moveToTrashAction = dolphin.actionCollection()->action("move_to_trash"); moveToTrashAction->plug(popup); @@ -231,9 +233,9 @@ void DolphinContextMenu::openItemContextMenu() int id = popup->exec(m_pos); if (id == bookmarkID) { - const KURL selectedURL(m_fileInfo->url()); + const KUrl selectedURL(m_fileInfo->url()); KBookmark bookmark = EditBookmarkDialog::getBookmark(i18n("Add folder as bookmark"), - selectedURL.filename(), + selectedURL.fileName(), selectedURL, "bookmark"); if (!bookmark.isNull()) { @@ -301,7 +303,7 @@ int DolphinContextMenu::insertOpenWithItems(KMenu* popup, // will be skipped here. const QString appName((*it)->name()); if (!containsEntry(openWithMenu, appName)) { - openWithMenu->insertItem((*it)->pixmap(KIcon::Small), + openWithMenu->insertItem((*it)->pixmap(K3Icon::Small), appName, index); openWithVector.append(*it); ++index; |
