PartDesign: use QKeySequence::Delete instead of a QString

This commit is contained in:
wmayer
2020-02-14 10:11:09 +01:00
parent 0310a99f4e
commit 60d9607112
10 changed files with 41 additions and 41 deletions

View File

@@ -113,10 +113,10 @@ void TaskLinearPatternParameters::setupUI()
// Create context menu
QAction* action = new QAction(tr("Remove"), this);
action->setShortcut(tr("Del"));
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
// display shortcut behind the context menu entry
action->setShortcutVisibleInContextMenu(true);
action->setShortcut(QKeySequence::Delete);
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
// display shortcut behind the context menu entry
action->setShortcutVisibleInContextMenu(true);
#endif
ui->listWidgetFeatures->addAction(action);
connect(action, SIGNAL(triggered()), this, SLOT(onFeatureDeleted()));