File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -261,7 +261,8 @@ mousePressEvent(QGraphicsSceneMouseEvent * event)
261261 auto & geom = _node.nodeGeometry ();
262262 auto & state = _node.nodeState ();
263263
264- if (geom.resizeRect ().contains (QPoint (pos.x (),
264+ if (_node.nodeDataModel ()->resizable () &&
265+ geom.resizeRect ().contains (QPoint (pos.x (),
265266 pos.y ())))
266267 {
267268 state.setResizing (true );
@@ -377,8 +378,9 @@ hoverMoveEvent(QGraphicsSceneHoverEvent * event)
377378 auto pos = event->pos ();
378379 auto & geom = _node.nodeGeometry ();
379380
380- if (geom.resizeRect ().contains (QPoint (pos.x (),
381- pos.y ())))
381+
382+ if (_node.nodeDataModel ()->resizable () &&
383+ geom.resizeRect ().contains (QPoint (pos.x (), pos.y ())))
382384 {
383385 setCursor (QCursor (Qt::SizeFDiagCursor));
384386 }
You can’t perform that action at this time.
0 commit comments