Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-14657

Adding/removing a property into/from a component should update the code model without requiring project reload

XMLWordPrintable

    • Icon: User Story User Story
    • Resolution: Out of scope
    • Icon: P2: Important P2: Important
    • None
    • QDS 4.8.0
    • Project Storage
    • None

      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.

       

       

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            bubke Marco Bubke
            e0348803 Miikka Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes