Details
-
Task
-
Resolution: Done
-
P2: Important
-
None
-
6.5, 6.6.0 FF
-
None
-
5
-
Foundations Sprint 94
Description
Fix all properties that will fail the test implemented in QTBUG-116345.
In general case, the fix would be as simple as calling valueBypassingBindings() instead of simply accessing the property in the setter (see the epic for a code example).
The scope of this task is to implement fixes in qtsensors submodule.
Using git-grep, I managed to get the following list of files that contain bindable properties:
~/qt5/qtsensors$ git grep -rI --name-only --recurse-submodules "Q_OBJECT_COMPAT_PROPERTY\|Q_OBJECT_COMPUTED_PROPERTY\|Q_OBJECT_BINDABLE_PROPERTY"
src/sensors/make_sensor.pl
src/sensorsquick/qmlaccelerometer_p.h
src/sensorsquick/qmlambientlightsensor_p.h
src/sensorsquick/qmlambienttemperaturesensor_p.h
src/sensorsquick/qmlcompass_p.h
src/sensorsquick/qmlgyroscope_p.h
src/sensorsquick/qmlhumiditysensor_p.h
src/sensorsquick/qmlirproximitysensor_p.h
src/sensorsquick/qmllidsensor_p.h
src/sensorsquick/qmllightsensor_p.h
src/sensorsquick/qmlmagnetometer_p.h
src/sensorsquick/qmlorientationsensor_p.h
src/sensorsquick/qmlpressuresensor_p.h
src/sensorsquick/qmlproximitysensor_p.h
src/sensorsquick/qmlrotationsensor_p.h
src/sensorsquick/qmlsensor_p.h
src/sensorsquick/qmltapsensor_p.h
src/sensorsquick/qmltiltsensor_p.h
If it turns out that some of the classes are missing the tests for bindable properties, or if the tests do not use the QTestPrivate helpers, then the missing tests should be added.
Attachments
Issue Links
- clones
-
QTBUG-116542 [QtScxml] Fix all binding loops caused by misuse of bindable properties
- Closed
- depends on
-
QTBUG-116345 Identify all bindable properties that cause binding loops
- Closed
- is cloned by
-
QTBUG-116544 [Other] Fix all binding loops caused by misuse of bindable properties
- Closed