minor node editor enhancements

This commit is contained in:
itsmattkc
2019-04-12 22:17:33 +10:00
parent 41767cca5e
commit 6b67727bd8
3 changed files with 23 additions and 12 deletions
+7 -3
View File
@@ -49,9 +49,13 @@ void NodeView::mouseReleaseEvent(QMouseEvent *event)
void NodeView::wheelEvent(QWheelEvent *event)
{
if (event->angleDelta().y() < 0) {
scale(0.9, 0.9);
if (event->modifiers() & Qt::ControlModifier) {
if (event->angleDelta().y() < 0) {
scale(0.9, 0.9);
} else {
scale(1.1, 1.1);
}
} else {
scale(1.1, 1.1);
QGraphicsView::wheelEvent(event);
}
}