Details
-
Task
-
Resolution: Done
-
P2: Important
-
None
-
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
- is required for
-
QTBUG-105952 copy property alias attributes from the pointed-to properties
- Open
-
QTBUG-91956 (qmltc) Support QML language and QQmlEngine related features
- Closed
-
QTBUG-105538 qmltc evolution collection task
- Open
For Gerrit Dashboard: QTBUG-105708 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
427029,19 | qmltc: test alias on properties with attributes | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
428119,3 | WIP: tst_qmltc::qRunQmltc: enable qmltc-runs during tests | dev | qt/qtdeclarative | Status: ABANDONED | -2 | 0 |
428236,5 | qmltc: test alias on versioned property | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |