Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-15385

Code model should indicate an error when a state's name is not unique

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Qt Creator 3.5.1, Qt Creator 3.6.0-rc1
    • Quick / QML Support
    • Windows 7 64 bit

    Description

      Open this code in the QML editor:

      import QtQuick 2.0
      
      Rectangle {
          State{
              name: "one"
          }
          State{
              name: "two"
          }
          State{
              name: "two"
          }
      }
      

      AFAIK, this is not valid QML because two of the states have the same name. (If it is, please let me know.) The QML editor should show a warning about this error.

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes