mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
KonqFileItemCapabilities -> KFileItemListProperties
svn path=/trunk/KDE/kdebase/apps/; revision=948007
This commit is contained in:
parent
91a6bbf95a
commit
402a17bf1f
|
@ -40,7 +40,7 @@
|
|||
#include <kmimetypetrader.h>
|
||||
#include <knewmenu.h>
|
||||
#include <konqmimedata.h>
|
||||
#include <konq_fileitemcapabilities.h>
|
||||
#include <kfileitemlistproperties.h>
|
||||
#include <konq_operations.h>
|
||||
#include <konq_menuactions.h>
|
||||
#include <klocale.h>
|
||||
|
@ -378,10 +378,10 @@ QAction* DolphinContextMenu::createPasteAction()
|
|||
return action;
|
||||
}
|
||||
|
||||
KonqFileItemCapabilities& DolphinContextMenu::capabilities()
|
||||
KFileItemListProperties& DolphinContextMenu::capabilities()
|
||||
{
|
||||
if (m_capabilities == 0) {
|
||||
m_capabilities = new KonqFileItemCapabilities(m_selectedItems);
|
||||
m_capabilities = new KFileItemListProperties(m_selectedItems);
|
||||
}
|
||||
return *m_capabilities;
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ class KMenu;
|
|||
class KFileItem;
|
||||
class QAction;
|
||||
class DolphinMainWindow;
|
||||
class KonqFileItemCapabilities;
|
||||
class KFileItemListProperties;
|
||||
|
||||
/**
|
||||
* @brief Represents the context menu which appears when doing a right
|
||||
|
@ -95,7 +95,7 @@ private:
|
|||
QAction* createPasteAction();
|
||||
|
||||
private:
|
||||
KonqFileItemCapabilities& capabilities();
|
||||
KFileItemListProperties& capabilities();
|
||||
void addCustomActions(KMenu* menu);
|
||||
|
||||
private:
|
||||
|
@ -117,7 +117,7 @@ private:
|
|||
};
|
||||
|
||||
DolphinMainWindow* m_mainWindow;
|
||||
KonqFileItemCapabilities* m_capabilities;
|
||||
KFileItemListProperties* m_capabilities;
|
||||
KFileItem m_fileInfo;
|
||||
KUrl m_baseUrl;
|
||||
KFileItemList m_selectedItems;
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
#include <kmenu.h>
|
||||
#include <kmenubar.h>
|
||||
#include <kmessagebox.h>
|
||||
#include <konq_fileitemcapabilities.h>
|
||||
#include <kfileitemlistproperties.h>
|
||||
#include <konqmimedata.h>
|
||||
#include <kprotocolinfo.h>
|
||||
#include <krun.h>
|
||||
|
@ -1374,7 +1374,7 @@ void DolphinMainWindow::updateEditActions()
|
|||
QAction* cutAction = col->action(KStandardAction::name(KStandardAction::Cut));
|
||||
QAction* deleteWithTrashShortcut = col->action("delete_shortcut"); // see DolphinViewActionHandler
|
||||
|
||||
KonqFileItemCapabilities capabilities(list);
|
||||
KFileItemListProperties capabilities(list);
|
||||
const bool enableMoveToTrash = capabilities.isLocal() && capabilities.supportsMoving();
|
||||
|
||||
renameAction->setEnabled(capabilities.supportsMoving());
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#include "dolphinnewmenuobserver.h"
|
||||
#include "dolphinremoteencoding.h"
|
||||
|
||||
#include <konq_fileitemcapabilities.h>
|
||||
#include <kfileitemlistproperties.h>
|
||||
#include <konq_operations.h>
|
||||
|
||||
#include <kaboutdata.h>
|
||||
|
@ -241,7 +241,7 @@ void DolphinPart::slotSelectionChanged(const KFileItemList& selection)
|
|||
|
||||
// TODO share this code with DolphinMainWindow::updateEditActions (and the desktop code)
|
||||
// in libkonq
|
||||
KonqFileItemCapabilities capabilities(selection);
|
||||
KFileItemListProperties capabilities(selection);
|
||||
const bool enableMoveToTrash = capabilities.isLocal() && capabilities.supportsMoving();
|
||||
|
||||
renameAction->setEnabled(capabilities.supportsMoving());
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
#include <kmimetyperesolver.h>
|
||||
#include <knewmenu.h>
|
||||
#include <konqmimedata.h>
|
||||
#include <konq_fileitemcapabilities.h>
|
||||
#include <kfileitemlistproperties.h>
|
||||
#include <konq_operations.h>
|
||||
#include <kshell.h>
|
||||
#include <kurl.h>
|
||||
|
@ -282,7 +282,7 @@ void DolphinViewContainer::slotDirListerCompleted()
|
|||
// it is unclear whether writing is supported
|
||||
m_isFolderWritable = true;
|
||||
} else {
|
||||
KonqFileItemCapabilities capabilities(KFileItemList() << item);
|
||||
KFileItemListProperties capabilities(KFileItemList() << item);
|
||||
m_isFolderWritable = capabilities.supportsWriting();
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#include <kio/deletejob.h>
|
||||
#include <kmenu.h>
|
||||
#include <konqmimedata.h>
|
||||
#include <konq_fileitemcapabilities.h>
|
||||
#include <kfileitemlistproperties.h>
|
||||
#include <konq_operations.h>
|
||||
#include <klocale.h>
|
||||
#include <kpropertiesdialog.h>
|
||||
|
@ -54,7 +54,7 @@ void TreeViewContextMenu::open()
|
|||
KMenu* popup = new KMenu(m_parent);
|
||||
|
||||
if (!m_fileInfo.isNull()) {
|
||||
KonqFileItemCapabilities capabilities(KFileItemList() << m_fileInfo);
|
||||
KFileItemListProperties capabilities(KFileItemList() << m_fileInfo);
|
||||
|
||||
// insert 'Cut', 'Copy' and 'Paste'
|
||||
QAction* cutAction = new QAction(KIcon("edit-cut"), i18nc("@action:inmenu", "Cut"), this);
|
||||
|
|
Loading…
Reference in a new issue