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

Property changes target does not work if there is a whitespace after the target name

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • QSR 2.1
    • QSR 1.2
    • Tooling
    • None

      Valid code:

       states: [
                      State { name: "A"; PropertyChanges {target: kuva2; x: 40; y: 10; opacity: 1.0; width: 10; height: 10}},
                      State { name: "B"; PropertyChanges {target: kuva2; x: 60; y: 10; opacity: 1.0; width: 20; height: 30}},
                      State { name: "C"; PropertyChanges {target: kuva2; x: 80; y: 10; opacity: 1.0; width: 40; height: 50}},
                      State { name: "D"; PropertyChanges {target: kuva2; x: 100; y: 10; opacity: 1.0; width: 60; height: 60}},
                      State { name: "E"; PropertyChanges {target: kuva2; x: 120; y: 10; opacity: 1.0; width: 80; height: 90}},
                      State { name: "F"; PropertyChanges {target: kuva2; x: 140; y: 10; opacity: 1.0; width: 150; height: 150}},
                      State { name: "G"; PropertyChanges {target: kuva2; x: 160; y: 10; opacity: 1.0; width: 200; height: 200}}
              ]
      

      malfunctioning code with whitespace after the target name before the ;

              states: [
                      State { name: "A"; PropertyChanges {target: kuva2 ; x: 40; y: 10; opacity: 1.0; width: 10; height: 10}},
                      State { name: "B"; PropertyChanges {target: kuva2 ; x: 60; y: 10; opacity: 1.0; width: 250; height: 250}},
                      State { name: "C"; PropertyChanges {target: kuva2 ; x: 80; y: 10; opacity: 1.0; width: 10; height: 10}},
                      State { name: "D"; PropertyChanges {target: kuva2 ; x: 100; y: 10; opacity: 1.0; width: 10; height: 10}},
                      State { name: "E"; PropertyChanges {target: kuva2 ; x: 120; y: 10; opacity: 1.0; width: 10; height: 10}},
                      State { name: "F"; PropertyChanges {target: kuva2 ; x: 140; y: 10; opacity: 1.0; width: 10; height: 10}},
                      State { name: "G"; PropertyChanges {target: kuva2 ; x: 160; y: 10; opacity: 1.0; width: 10; height: 10}}
              ]
      

      The first one generates bitmaps correctly.

      The second code does not generate bitmaps at all.

      Both code samples were tested with qmlscene tool, and it accepts the whitespace after the target name. So the problem is in the QSR tooling and animation validation.

       

       

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

            teemu.holappa Teemu Holappa
            assaarel Asmo Saarela (Inactive)
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes