diff options
Diffstat (limited to 'sources/pyside2/tests/QtCore/qproperty_decorator.py')
-rw-r--r-- | sources/pyside2/tests/QtCore/qproperty_decorator.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sources/pyside2/tests/QtCore/qproperty_decorator.py b/sources/pyside2/tests/QtCore/qproperty_decorator.py index aa31e59c4..c845ac6d3 100644 --- a/sources/pyside2/tests/QtCore/qproperty_decorator.py +++ b/sources/pyside2/tests/QtCore/qproperty_decorator.py @@ -47,7 +47,9 @@ class MyObject(QObject): return self._value @value.setter - def valueSet(self, value): + # Note: The name of property and setter must be the same, because the + # object changes its identity all the time. `valueSet` no longer works. + def value(self, value): self._value = value |