Skip to content

Commit e7927b4

Browse files
committed
Update comment
1 parent 21f7ea3 commit e7927b4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

NodeGraphQt/widgets/viewer.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,9 +366,13 @@ def sceneMouseReleaseEvent(self, event):
366366
event (QtWidgets.QGraphicsSceneMouseEvent):
367367
The event handler from the QtWidgets.QGraphicsScene
368368
"""
369-
# (NOTE) Please see commit message
370-
# if event.modifiers() == QtCore.Qt.ShiftModifier:
371-
# event.setModifiers(QtCore.Qt.ControlModifier)
369+
370+
# (NOTE) The `QtWidgets.QGraphicsSceneMouseEvent` class doesn't have
371+
# `setModifiers` in PyQt, please see the note above.
372+
"""
373+
if event.modifiers() == QtCore.Qt.ShiftModifier:
374+
event.setModifiers(QtCore.Qt.ControlModifier)
375+
"""
372376

373377
if not self._live_pipe:
374378
return

0 commit comments

Comments
 (0)