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

Layout Tool silently ignores state in case source property is invalid

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • QSR 2.1 Beta 3
    • QSR 2.1
    • Tooling
    • None
    • 8ed131261 (dev), 1a2249afd (tqtc/lts-6.5), 5dae159e1 (tqtc/lts-6.5.4)

    Description

      In a QML file, the SafeImage component does not generate an error message when the source image specified in its states is not found.

      Expected Behavior: An error message should be displayed when the source image in states cannot be found.

      Actual Behavior: No error message is displayed, and no sts files are generated for the item.

          SafeImage {
              id: eyesClosed
              width: 48
              height: 48
              x: 41
              y: 228
              opacity: 1
              fillColor: "black"
              source: "assets/eye_closed1.png"        
              states: [
                  State {
                      name: "alert"
                      PropertyChanges {
                          target: eyesClosed
                          source: "eye_closed2.png"
                          opacity: 1
                      }
                  },
                  State {
                      name: "warning"
                      PropertyChanges {
                          target: eyesClosed
                          source: "eye_closed1.png"
                          opacity: 1
                      }
                  },
                  State {
                      name: "OFF"
                      PropertyChanges {
                          target: eyesClosed
                          fillColor: "black"
                          opacity: 0
                      }
                  }
              ]
          } 

      Attachments

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

        Activity

          People

            jussi_witick Jussi Witick
            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