image provider does not emit sourceChanged signal
Bug #1194778 reported by
Michael Zanetti
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu UI Toolkit |
Fix Released
|
High
|
Zsombor Egri | ||
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Vivid |
New
|
Undecided
|
Unassigned | ||
ubuntu-ui-toolkit (Ubuntu RTM) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
importing Ubuntu.Components breaks Image's (and BorderImage's) sourceChanged signal.
Check out the attached code snippet. All it does is to change the image source when clicking the button. Now, if you run it as is, you will see the print("source changed!") happening every time the Image's source changes.
Now, open the file and uncomment the import for Ubuntu.Components 0.1. Repeat the experiment.
=> the sourceChanged signal is gone.
Related branches
lp:~zsombi/ubuntu-ui-toolkit/image-sourcechanged
- PS Jenkins bot: Approve (continuous-integration)
- Cris Dywan: Approve
-
Diff: 104 lines (+49/-11)4 files modifiedcomponents.api (+0/-6)
modules/Ubuntu/Components/plugin/ucqquickimageextension.cpp (+0/-1)
modules/Ubuntu/Components/plugin/ucqquickimageextension.h (+1/-4)
tests/unit_x11/tst_components/tst_imageprovider.qml (+48/-0)
Changed in ubuntu-ui-toolkit: | |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in ubuntu-ui-toolkit: | |
assignee: | nobody → Florian Boucault (fboucault) |
Changed in ubuntu-ui-toolkit: | |
assignee: | Florian Boucault (fboucault) → Zsombor Egri (zsombi) |
milestone: | none → 11.21 |
Changed in ubuntu-ui-toolkit: | |
status: | Fix Committed → Fix Released |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | New → Fix Released |
Changed in ubuntu-ui-toolkit (Ubuntu RTM): | |
status: | New → Fix Released |
To post a comment you must log in.
The issue is likely to be with qmlRegisterExte ndedType that does not proxy the property change signal from the extension object to the extended object.
Oddly, even firing the 'sourceChanged' signal on the extended object manually does not seem to work.