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

qml: reject or warn about enums in inline components

    XMLWordPrintable

Details

    Description

      Warn or reject or fix enum declarations in inline components: those enums are unusable as they cannot be used neither inside nor outside the inline component they were defined

      The syntax to using a value of the enum would be

      QmlFileName.InlineComponentName.EnumType.EnumValue // from different qml file, does not work currently
      InlineComponentName.EnumType.EnumValue // from same qml file, does not work currently
      EnumType.EnumValue // inside the inline component defining this, does not work currently

      See also QmlFileName.qml in attachment.

       

      Attachments

        1. QmlFileName.qml
          0.5 kB
          Sami Shalayel

        Issue Links

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

          Activity

            People

              qtqmlteam Qt Qml Team User
              sami.shalayel Sami Shalayel
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes