Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-117300

qmllint does not warn about enum with the same name as their value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.9, 6.10.0 Beta3
    • 6.6
    • QML: Tooling
    • None
    • ae3754df9 (dev)

      qmllint does not warn about the definitions of enums like following one

       

       enum Hello { World, Worldy, Worldo, Hello }

      This is confusing because the user might confuse Hello (the enum key) with Hello (the name of the enum). See the output of the attached project for an example, where someItem.World is an enum key while someItem.Hello is not an enum key.

       

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

            olivier.decanniere Olivier De Cannière
            sami.shalayel Sami Shalayel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes