]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/panels/folders/treeviewcontextmenu.cpp
Adapt to KConfigGroup name officially being a QString type
[dolphin.git] / src / panels / folders / treeviewcontextmenu.cpp
index cff8bd029e1d35c55cb73bdcf394bb0a76a0fe9b..ec1ccb4d637089a7733a5027c7a3dac55b886c29 100644 (file)
@@ -67,7 +67,7 @@ void TreeViewContextMenu::open(const QPoint &pos)
         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);
@@ -75,7 +75,7 @@ void TreeViewContextMenu::open(const QPoint &pos)
 
         // 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();
@@ -222,3 +222,5 @@ void TreeViewContextMenu::setAutoScrolling(bool enable)
 {
     m_parent->setAutoScrolling(enable);
 }
+
+#include "moc_treeviewcontextmenu.cpp"