popup->addAction(renameAction);
// insert 'Move to Trash' and (optionally) 'Delete'
- const KSharedConfig::Ptr globalConfig = KSharedConfig::openConfig("kdeglobals", KConfig::NoGlobals);
+ const KSharedConfig::Ptr globalConfig = KSharedConfig::openConfig("kdeglobals");
const KConfigGroup kdeConfig(globalConfig, "KDE");
bool showDeleteCommand = kdeConfig.readEntry("ShowDeleteCommand", false);
const KUrl& url = m_fileInfo.url();
void TreeViewContextMenu::rename()
{
- QList<KFileItem> item;
+ KFileItemList item;
item.append(m_fileInfo);
RenameDialog dialog(item);
if (dialog.exec() == QDialog::Accepted) {