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

qmltc: test alias on property with attributes

    XMLWordPrintable

Details

    • 8120ec1d3d (qt/qtdeclarative/dev) 8120ec1d3d (qt/tqtc-qtdeclarative/dev)

    Description

      Test how qmltc handles aliases to properties with attributes.

      Some terminology:

      property alias aliasingProperty: someobject.aliasedProperty
      

      Following attributes exists:

      • READ, WRITE, MEMBER
        • test if can write to readonly property
        • check if isReadable/isWritable is set correctly in QMetaProperty of alias
        • if alias is marked explicitly as readonly, or if the aliasedProperty is readonly, make the alias readonly
      • RESET:
        • test if alias can be resetted
        • check if isResettable is set correctly in QMetaProperty of alias
      • NOTIFY:
        • test if alias notifies when being written to
        • check hasNotify in QMetaProperty of alias
      • REVISION:
        • test that alias cannot point to a property too new for current module-version,
        • check revision in QMetaProperty of alias, should be 0 always
      • DESIGNABLE:
        • check isDesignable in QMetaProperty of alias, same as aliased property
      • SCRIPTABLE:
        • check isScriptable in QMetaProperty of alias, always true
        • Idea: if engine cannot process aliased property, then it also cannot process the alias (in this case, the code generated by qmltc fails during execution, no warnings or errors are issued during compilation)
      • STORED:
        • check isStored in QMetaProperty of alias, same as aliased property
      • USER:
        • check isUser in QMetaProperty of alias, always false
      • BINDABLE:
        • same as aliased
        • check isBindable in QMetaProperty of alias
        • check if bindable can be set or modified through metaproperty system
      • CONSTANT:
        • check isConstant in QMetaProperty of alias, same as aliased property
      • FINAL:
        • check isFinal in QMetaProperty of alias, always false
      • REQUIRED:
        • aliases cannot be required (else qmlcachegen complains that they are required and that they have an initializer and that both is not possible)

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes