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

Details

    • User Story
    • Resolution: Unresolved
    • P2: Important
    • None
    • QDS 4.8
    • Project Storage
    • 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.

       

       

       

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes