Update DraftGui.py

The Y and Z inputs also require the event filter.
This commit is contained in:
Roy-043
2021-10-22 20:04:06 +02:00
committed by GitHub
parent 80d0a5e97d
commit 54d43ce262

View File

@@ -473,9 +473,11 @@ class DraftToolBar:
self.xValue.setText(FreeCAD.Units.Quantity(0,FreeCAD.Units.Length).UserString)
self.labely = self._label("labely", yl)
self.yValue = self._inputfield("yValue", yl)
self.yValue.installEventFilter(self.baseWidget) # Required to detect snap cycling in case of Y constraining.
self.yValue.setText(FreeCAD.Units.Quantity(0,FreeCAD.Units.Length).UserString)
self.labelz = self._label("labelz", zl)
self.zValue = self._inputfield("zValue", zl)
self.zValue.installEventFilter(self.baseWidget) # Required to detect snap cycling in case of Z constraining.
self.zValue.setText(FreeCAD.Units.Quantity(0,FreeCAD.Units.Length).UserString)
self.pointButton = self._pushbutton("addButton", bl, icon="Draft_AddPoint")