Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-105946 qmltc: inline components
  3. QTBUG-107063

qmltc: reject enums in inline components

XMLWordPrintable

    • f368be4320 (qt/qtdeclarative/dev) f368be4320 (qt/tqtc-qtdeclarative/dev)

      Reject (for now) enum declarations in inline components: those enums are unusable even in the qml engine 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.

        1. QmlFileName.qml
          0.5 kB
          Sami Shalayel
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            sami.shalayel Sami Shalayel
            sami.shalayel Sami Shalayel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes