SanderVocke / qoverage

Simple code coverage for QML
GNU General Public License v3.0
4 stars 1 forks source link

Properly detect attached properties #51

Open SanderVocke opened 8 months ago

SanderVocke commented 8 months ago

Found it with the drag {} property. the qml injection injects a Qoverage property inside the attached property as if it were a full object instance. It causes a duplicate property error because of name aliasing between the tracker properties of the object and the attached property block.

SanderVocke commented 8 months ago

The drag {} issue is fixed now.

But the way it is currently handled, I just keep a blacklist of object names which are attached properties or at least not normal Components (anchors, Connections, drag, etc.) and ignore them.

It would be better if I could detect this properly somehow regardless of the name of the object. But it seems qmldom doesn't output anything specific that would help me detect this.