Improve the initialization behavior of CategoryModel


CategoryModel was missing an update call in the ::componentComplete
callback, as well as reacting on the name changed signal of the plugin.
An update call was also missing in the setPlugin method.
This patch makes it react on the attached signal instead, and
adds missing update calls.

Fixes: QTBUG-70254
Change-Id: I1a8de0137b4fe4af7c5ffc848799061147febba2
Reviewed-by: Michael Brasser <michael.brasser@live.com>
commita4cc61fc30cb7dff15bf7ae2ff064530b40d72c5
parentcb19e1f7e3cc2cfee3b8fcbdfa5cd151826dadac
authorPaolo Angelelli <paolo.angelelli@qt.io>
committerPaolo Angelelli <paolo.angelelli@qt.io>
commit timeTue, 27 Nov 2018 18:48:52 +0000