aboutsummaryrefslogtreecommitdiffstats
path: root/doc/codesnippets/snippets
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2016-09-27 13:44:42 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2016-09-28 15:49:25 +0000
commit40ceda512555248dd03c8d79be422119335ae8f1 (patch)
treee31b4460c0d62f5326bb7e82a080b54052fa74d1 /doc/codesnippets/snippets
parentab819beee71c30bd628015a7bb35c444b5af97c5 (diff)
Fix property notify ids to be correct
When Python parses a class to find signals and slots, the resulting list contains the methods in the order they are defined in the source code. After that, properties are parsed, and the notify ids are set based on the relative order of the parsed methods. But because the methods are sorted before their details are put into the dynamic QMetaObject, the notify id of a property might point to a wrong method. This fix makes sure that the relative notify id of every property is recomputed before being written to the QMetaObject. This allows QML bindings to work correctly. Change-Id: I5e50970fee9a42ae8ea551b7891d396b8a6eda97 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'doc/codesnippets/snippets')
0 files changed, 0 insertions, 0 deletions