Path: set property for spinbox

This commit is contained in:
David Holdeman
2023-03-17 21:25:15 -05:00
parent e9c4a8b5ce
commit b86d858abc

View File

@@ -199,10 +199,10 @@ class QuantitySpinBox(QtCore.QObject):
self.lastWidgetText = self.widget.text() # update last widget value
if expr:
self.widget.setReadOnly(True)
self.widget.setStyleSheet("color: gray")
self.widget.setProperty("exprSet", "true")
else:
self.widget.setReadOnly(False)
self.widget.setStyleSheet("color: black")
self.widget.setProperty("exprSet", "false")
def updateProperty(self):
"""updateProperty() ... update the bound property with the value from the spin box"""