popup->addSeparator();
// insert 'Rename'
- QAction *renameAction = new QAction(i18nc("@action:inmenu", "Rename..."), this);
+ QAction *renameAction = new QAction(i18nc("@action:inmenu", "Rename…"), this);
renameAction->setEnabled(capabilities.supportsMoving());
renameAction->setIcon(QIcon::fromTheme(QStringLiteral("edit-rename")));
connect(renameAction, &QAction::triggered, this, &TreeViewContextMenu::rename);
// insert 'Move to Trash' and (optionally) 'Delete'
KSharedConfig::Ptr globalConfig = KSharedConfig::openConfig(QStringLiteral("kdeglobals"), KConfig::IncludeGlobals);
- KConfigGroup configGroup(globalConfig, "KDE");
+ KConfigGroup configGroup(globalConfig, QStringLiteral("KDE"));
bool showDeleteCommand = configGroup.readEntry("ShowDeleteCommand", false);
const QUrl url = m_fileItem.url();
{
m_parent->setAutoScrolling(enable);
}
+
+#include "moc_treeviewcontextmenu.cpp"