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

Document state change behavior

    XMLWordPrintable

Details

    • User Story
    • Resolution: Done
    • Not Evaluated
    • None
    • QSR 1.2
    • Documentation
    • None
    • Ib80aba895ae173678e6e77b2ec2b7c09e65f0cc0

    Description

      In 1.2 it possible to define states for the safety elements using  QML state.

       SafePicture {
           id: engineIcon
           width: 40
           height: 40
           x: 40
           y: 40
           source: "iso_grs_7000_4_2423.dat"
           states: [
             State
             {            
                  name: "warning"
                  PropertyChanges { target: icon; width: 80; height: 80; color: "yellow"}
             },
             State       
             {
                 name: "fault"
                 PropertyChanges \{ target: icon; width: 80; height: 80; color: "red"}
             }
           ]
       }

       

      In the safe renderer there is introduced the event which changes the item state:

      QSafeEventChangeState(item id, state name)

       

       

      Attachments

        Issue Links

          For Gerrit Dashboard: QSR-751
          # Subject Branch Project Status CR V

          Activity

            People

              tarjasundqvist Tarja Sundqvist
              teemu.holappa Teemu Holappa
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes