diff options
author | Maximilian Goldstein <max.goldstein@qt.io> | 2022-05-02 16:51:01 +0200 |
---|---|---|
committer | Maximilian Goldstein <max.goldstein@qt.io> | 2022-05-16 18:22:45 +0200 |
commit | 2ebee301fd6629f2d5c604fd021c61c15692775f (patch) | |
tree | 19a0835b68243cdcb845062840229fff2fe89872 /src/qml/qml/qqmlobjectcreator.cpp | |
parent | 8c3b77da082b11d4b5839276d655e7f2540f1c32 (diff) |
Reimplement PropertyPass to evaluate bindings
This change reimplements the PropertyPass to be based on bindings
rather than on just iterating over elements. This is a lot less
cost intensive than iterating over all properties regardless of
whether they are actually used. You may still achieve the same
thing with the more flexible element pass, just with the benefit
that you can choose what properties you want to iterate over
instead of iterating over all of them.
To demonstrate the passes usefulness the existing attached property
warnings are ported to use the binding pass and can now also warn
when an attached property is read or written in a context where
it's not supposed to be used.
Fixes: QTBUG-102860
Fixes: QTBUG-102418
Task-number: QTBUG-102859
Change-Id: Iea87a1b05b954429b8bf00fd27b60487940af679
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/qml/qml/qqmlobjectcreator.cpp')
0 files changed, 0 insertions, 0 deletions