mirror of
https://github.com/nqrduck/nqrduck-measurement.git
synced 2024-12-22 15:47:51 +00:00
Changed back to validator w. position argument.
This commit is contained in:
parent
d3594230a0
commit
2c9c2f82e1
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ class MeasurementView(ModuleView):
|
|||
validator (QValidator): The validator to use for the widget.
|
||||
"""
|
||||
if validator.validate(widget.text(), 0) == QValidator.State.Acceptable:
|
||||
widget.setStyleSheet("QLineEdit { background-color: white; }")
|
||||
widget.setStyleSheet("QLineEdit { background-color: transparent; }")
|
||||
elif validator.validate(widget.text(), 0) == QValidator.State.Intermediate:
|
||||
widget.setStyleSheet("QLineEdit { background-color: yellow; }")
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue