From 03b184fc1f08bf05f2af2872a59ca4b7f1eb9071 Mon Sep 17 00:00:00 2001 From: Denes Matetelki Date: Thu, 23 Jun 2011 20:02:52 +0200 Subject: [PATCH] mouse move/scale subtree bugfix --- graphwidget.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/graphwidget.cpp b/graphwidget.cpp index b7718bc..879b3b3 100644 --- a/graphwidget.cpp +++ b/graphwidget.cpp @@ -541,7 +541,7 @@ void GraphWidget::wheelEvent(QWheelEvent *event) m_parent->statusBarMsg(tr("No active node.")); return; } - if (QApplication::keyboardModifiers() & Qt::ShiftModifier) + if (QApplication::keyboardModifiers() & Qt::AltModifier) { foreach(Node *node, m_activeNode->subtree()) node->setScale(pow((double)1.2, event->delta() / 120.0), @@ -689,7 +689,8 @@ void GraphWidget::nodeSelected(Node *node) void GraphWidget::nodeMoved(QGraphicsSceneMouseEvent *event) { QList nodeList; - if (event->modifiers() == Qt::ShiftModifier) + if (event->modifiers() & Qt::AltModifier && + event->modifiers() & Qt::ControlModifier) { nodeList = m_activeNode->subtree(); }