Uploaded image for project: 'Qt Safe Renderer'
  1. Qt Safe Renderer
  2. QSR-1788

Changing of component id fails states target parsing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • QSR 2.1
    • QSR 2.0
    • Tooling
    • None
    • 30b636a5d5f7c5230d275eba731a2246bf839132

    Description

      Consider having the following component (IconLowbeam) which contains the state:

      import QtQuick 2.0
      import Qt.SafeRenderer 2.0
      
      SafePicture {
          id: iconLowBeam
          width: 30
          height: 30
          color: "yellow"
          fillColor: "black"
          source: "iso_grs_7000_4_0083.dat"
      
          states: [
              State {
                  name: "ON"
                  PropertyChanges {
                      target: iconLowBeam
                      color: "green"
                      fillColor: "black"
                  }
              },
              State {
                  name: "OFF"
                  PropertyChanges {
                      target: iconLowBeam
                      color: "red"
                      fillColor: "black"
                  }
              }
          ]
      }
      

      If the IconLowBeam id is changed (beamIcon2) state change links to iconLowBeam.

          IconLowBeam {
              id: beamIcon
              objectName: "beamIcon"
              x: 128
              y: 0
              width: 128
              height: 128
          }
      

      Attachments

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

        Activity

          People

            teemu.holappa Teemu Holappa
            teemu.holappa Teemu Holappa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes