Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-609

Ranged properties in Multimedia QML elements should print qWarning if developer assigns value out of bounds

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P3: Somewhat important
    • 1.1.0
    • 1.1.x
    • Multimedia
    • None

    Description

      Writing code below should result in three warnings and the values not being passed to multimedia backends.

      import Qt 4.7
      import Qt.multimedia 1.1
      
      Item {
          SoundEffect {
              volume: 10 // should be between 0.0 and 1.0 
              loops: -3 // should be -1 (infinite), 0 or positive integer
          }
      
          Audio {
              volume: 10 // should be between 0.0 and 1.0 
          }
      }
      

      Attachments

        Activity

          People

            ling.hu@nokia.com Ling Hu (closed Nokia identity) (Inactive)
            jpetrell Joona Petrell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: