#include "dolphinnewmenuobserver.h"
#include "dolphinremoteencoding.h"
-#include <konq_fileitemcapabilities.h>
+#include <kfileitemlistproperties.h>
#include <konq_operations.h>
#include <kaboutdata.h>
setXMLFile("dolphinpart.rc");
connect(m_view, SIGNAL(infoMessage(QString)),
- this, SLOT(slotInfoMessage(QString)));
+ this, SLOT(slotMessage(QString)));
+ connect(m_view, SIGNAL(operationCompletedMessage(QString)),
+ this, SLOT(slotMessage(QString)));
connect(m_view, SIGNAL(errorMessage(QString)),
this, SLOT(slotErrorMessage(QString)));
connect(m_view, SIGNAL(itemTriggered(KFileItem)),
// Watch for changes that should result in updates to the
// status bar text.
- connect(m_dirLister, SIGNAL(deleteItem(const KFileItem&)),
+ connect(m_dirLister, SIGNAL(itemsDeleted(const KFileItemList&)),
this, SLOT(updateStatusBar()));
connect(m_dirLister, SIGNAL(clear()),
this, SLOT(updateStatusBar()));
// 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());
slotCompleted(url);
}
-void DolphinPart::slotInfoMessage(const QString& msg)
+void DolphinPart::slotMessage(const QString& msg)
{
emit setStatusBarText(msg);
}
{
// TODO: Check issue N176832 for the missing QAIV signal; task 177399 - maybe this code
// should be moved into DolphinPart::slotItemTriggered()
- KFileItem item(S_IFDIR, (mode_t)-1, url);
- KParts::OpenUrlArguments args;
- args.setMimeType(item.mimetype());
- emit m_extension->createNewWindow(url, args);
+ emit m_extension->createNewWindow(url);
}
void DolphinPart::slotOpenContextMenu(const KFileItem& _item,