Commit a02cfef3 authored by Heiko Becker's avatar Heiko Becker 🏃
Browse files

Use KActionCollection::setDefaultShortcut

Summary: ...instead of QAction::setShortcut, which removes a run-time warning.

Test Plan: Builds, warning disappears and shortcut still works

Reviewers: #kde_edu

Differential Revision:
parent b21c56b5
......@@ -198,8 +198,8 @@ void MainWindow::setupActions()
actionDelete = actionCollection()->add<QAction>("edit_delete", worldModel, SLOT(deleteSelectedItems()));
actionCollection()->setDefaultShortcut(actionDelete, QKeySequence(Qt::Key_Delete));
/* Simulation menu */
// The run speed action group
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