PartDesign: use QKeySequence::Delete instead of a QString

This commit is contained in:
wmayer
2020-02-14 10:11:09 +01:00
parent 5ca8b490f0
commit 88a60f91e9
10 changed files with 41 additions and 41 deletions

View File

@@ -75,10 +75,10 @@ TaskMultiTransformParameters::TaskMultiTransformParameters(ViewProviderTransform
// 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()));