Details
-
User Story
-
Resolution: Unresolved
-
P2: Important
-
None
-
QDS 4.8
-
None
Description
If you add a new exposed property into a qml file in the project (i.e. My Components component or any generated component), the new property should be recognized by code model and be available to use in property view without requiring project reload. Similarly, removing exposed properties from qml files should update code model accordingly and update the property view.
The need to update property view also implies need for a notification about this change. Presumably existing property change notifications already cover this, so no new notification function should be needed.
Use case for adding property:
- Add instance of MyRectangle into the scene
- Change the current document to MyRectange.qml
- Create a new property in MyRectangle.qml (e.g. property bool foobar: true)
- Change the current document back to Screen01.ui.qml
- Select MyRectangle node in scene
- Open properties view
-> The new property should be listed in properties view's exposed custom properties section.
Use case for removing property:
- Change the current document to MyRectange.qml
- Remove the foobar property created above
- Change the current document back to Screen01.ui.qml
- Select MyRectangle node in scene
- Open properties view
-> The foobar property should no longer be listed in properties view's exposed custom properties section.