Emit itemChanged when Loader fails to load a source.
authorAlan Alpert <alan.alpert@nokia.com>
Tue, 12 Jun 2012 01:47:13 +0000 (11:47 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 12 Jun 2012 13:40:13 +0000 (15:40 +0200)
commite883fa03efad4384f030cec5f13c22346356e3bf
tree11ecbaf6504aaf077ac9ad219a41489372f2aa84
parent14e15458a53ea5de16d829dd0dce0d9d0c4f1611
Emit itemChanged when Loader fails to load a source.

As per the source comment, it is not actually tracked whether item was
null before. This is consistent with the behaviour in loadFromSource,
where setting a source to null always emits item changed.

This is reasonable behaviour, because it only occurs in unexpected error
states where the program logic likely expects a changed signal anyways.

Change-Id: I160ab04dc1b5c578ee508f4adbca65e8da5b16be
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
src/quick/items/qquickloader.cpp
tests/auto/quick/qquickloader/tst_qquickloader.cpp