set shortcut for deletion of items

This commit is contained in:
wmayer
2017-04-17 14:22:35 +02:00
parent f87c6ff2db
commit 6b391fa7f3

View File

@@ -176,6 +176,7 @@ SurfaceFilling::SurfaceFilling(ViewProviderGeomFillSurface* vp, Surface::GeomFil
// Create context menu
QAction* action = new QAction(tr("Remove"), this);
action->setShortcut(QString::fromLatin1("Del"));
ui->listWidget->addAction(action);
connect(action, SIGNAL(triggered()), this, SLOT(onDeleteEdge()));
ui->listWidget->setContextMenuPolicy(Qt::ActionsContextMenu);