- m_actionCollection->setDefaultShortcut(newDirAction, Qt::Key_F10);
- newDirAction->setIcon(QIcon::fromTheme(QStringLiteral("folder-new")));
+ #if KCONFIG_VERSION >= QT_VERSION_CHECK(5, 74, 0)
+ m_actionCollection->setDefaultShortcuts(newDirAction, KStandardShortcut::createFolder());
+ #else
+ m_actionCollection->setDefaultShortcut(newDirAction, Qt::Key_F10);
+ #endif
+ newDirAction->setIcon(QIcon::fromTheme(QStringLiteral("folder-new")));