ui: renamed undo&redo to back&forward, control back&forward via mouse and backspace

* the key codes for mouse back and forward buttons can be defined in the ApplicationSettings
* fixed only left mouse button allowed for graph interactions
This commit is contained in:
Eberhard Graether
2015-12-16 16:22:10 +01:00
parent 103c8242f5
commit 82a16341d8
7 changed files with 100 additions and 6 deletions
@@ -265,6 +265,11 @@ void QtGraphNode::mousePressEvent(QGraphicsSceneMouseEvent* event)
{
event->ignore();
if (event->button() != Qt::LeftButton)
{
return;
}
for (std::shared_ptr<QtGraphNodeComponent> component : m_components)
{
component->nodeMousePressEvent(event);
@@ -303,6 +308,11 @@ void QtGraphNode::mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
{
event->ignore();
if (event->button() != Qt::LeftButton)
{
return;
}
for (std::shared_ptr<QtGraphNodeComponent> component : m_components)
{
component->nodeMouseReleaseEvent(event);