We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2eb30fe + 870dcf4 commit e51bb93Copy full SHA for e51bb93
meshroom/ui/components/edge.py
@@ -17,7 +17,7 @@ def __init__(self, evt):
17
x = Property(float, lambda self: self._x, constant=True)
18
y = Property(float, lambda self: self._y, constant=True)
19
button = Property(Qt.MouseButton, lambda self: self._button, constant=True)
20
- modifiers = Property(int, lambda self: self._modifiers, constant=True)
+ modifiers = Property(Qt.KeyboardModifier, lambda self: self._modifiers, constant=True)
21
22
23
class EdgeMouseArea(QQuickItem):
@@ -47,8 +47,8 @@ def hoverLeaveEvent(self, evt):
47
self.setContainsMouse(False)
48
super(EdgeMouseArea, self).hoverLeaveEvent(evt)
49
50
- def geometryChanged(self, newGeometry, oldGeometry):
51
- super(EdgeMouseArea, self).geometryChanged(newGeometry, oldGeometry)
+ def geometryChange(self, newGeometry, oldGeometry):
+ super(EdgeMouseArea, self).geometryChange(newGeometry, oldGeometry)
52
self.updateShape()
53
54
def mousePressEvent(self, evt):
meshroom/ui/qml/GraphEditor/Edge.qml
@@ -138,18 +138,13 @@ Item {
138
anchors.fill: parent
139
acceptedButtons: Qt.LeftButton | Qt.RightButton
140
thickness: root.thickness + 4
141
+ curveScale: cubic.ctrlPtDist / root.width // Normalize by width
142
onPressed: function(event) {
143
root.pressed(event)
144
}
145
onReleased: function(event) {
146
root.released(event)
147
148
- Component.onCompleted: {
149
- /* The curve scale must be set only once the component has been fully created, so
150
- * that all the events following the update of the curve scale can be taken into
151
- * account. */
152
- curveScale = Qt.binding(() => cubic.ctrlPtDist / root.width) // Normalize by width
153
- }
154
155
0 commit comments