Commit bba12547 authored by Mario Hlawitschka's avatar Mario Hlawitschka
Browse files

[CHANGE] there is a default QKeySequence::Delete, so use that even though it...

[CHANGE] there is a default QKeySequence::Delete, so use that even though it does not fix the awkwardness of Macs not having a dedicated delete key.
parent 15e9de2b
......@@ -105,7 +105,7 @@ WQtControlPanel::WQtControlPanel( WMainWindow* parent )
{
// Set the key for removing modules
m_deleteModuleAction->setShortcutContext( Qt::WidgetShortcut );
m_deleteModuleAction->setShortcut( QKeySequence( "Delete" ) );
m_deleteModuleAction->setShortcut( QKeySequence::Delete );
m_deleteModuleAction->setIconVisibleInMenu( true );
}
connect( m_deleteModuleAction, SIGNAL( triggered() ), this, SLOT( deleteModuleTreeItem() ) );
......@@ -185,7 +185,7 @@ WQtControlPanel::WQtControlPanel( WMainWindow* parent )
{
// Set the key for removing modules
m_deleteRoiAction->setShortcutContext( Qt::WidgetShortcut );
m_deleteRoiAction->setShortcut( QKeySequence( "Delete" ) );
m_deleteRoiAction->setShortcut( QKeySequence::Delete );
m_deleteRoiAction->setIconVisibleInMenu( true );
}
connect( m_deleteRoiAction, SIGNAL( triggered() ), this, SLOT( deleteROITreeItem() ) );
......
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