From 5b8463469d09f465bea0490275a14b60f8f16afd Mon Sep 17 00:00:00 2001 From: David Holdeman Date: Sat, 18 Mar 2023 09:23:58 -0500 Subject: [PATCH] Path: polish to apply --- src/Mod/Path/Path/Base/Gui/Util.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Mod/Path/Path/Base/Gui/Util.py b/src/Mod/Path/Path/Base/Gui/Util.py index 0170b33f57..b2244635f7 100644 --- a/src/Mod/Path/Path/Base/Gui/Util.py +++ b/src/Mod/Path/Path/Base/Gui/Util.py @@ -90,9 +90,13 @@ def updateInputField(obj, prop, widget, onBeforeChange=None): if exprSet: widget.setReadOnly(True) widget.setProperty("exprSet", "true") + widget.style().unpolish(widget) + widget.ensurePolished() else: widget.setReadOnly(False) widget.setProperty("exprSet", "false") + widget.style().unpolish(widget) + widget.ensurePolished() widget.update() if isDiff: @@ -200,9 +204,13 @@ class QuantitySpinBox(QtCore.QObject): if expr: self.widget.setReadOnly(True) self.widget.setProperty("exprSet", "true") + self.widget.style().unpolish(self.widget) + self.widget.ensurePolished() else: self.widget.setReadOnly(False) self.widget.setProperty("exprSet", "false") + self.widget.style().unpolish(self.widget) + self.widget.ensurePolished() def updateProperty(self): """updateProperty() ... update the bound property with the value from the spin box"""