Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

remove deprecated code

parent 56f8e039
......@@ -645,14 +645,8 @@ Bin::Bin(const std::shared_ptr<ProjectItemModel> &model, QWidget *parent)
disableEffects->setChecked(false);
pCore->window()->actionCollection()->addAction(QStringLiteral("disable_bin_effects"), disableEffects);
#if KXMLGUI_VERSION_MINOR > 24 || KXMLGUI_VERSION_MAJOR > 5
m_renameAction = KStandardAction::renameFile(this, SLOT(slotRenameItem()), this);
m_renameAction->setText(i18n("Rename"));
#else
m_renameAction = new QAction(i18n("Rename"), this);
connect(m_renameAction, &QAction::triggered, this, &Bin::slotRenameItem);
m_renameAction->setShortcut(Qt::Key_F2);
#endif
m_renameAction->setData("rename");
pCore->window()->actionCollection()->addAction(QStringLiteral("rename"), m_renameAction);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment