Dialog: give the contentItem focus when the dialog becomes visible

The focus binding didn't work if the default content item was replaced,
as in the "buttonless marginless dialog" example.

Change-Id: Ice6bea21e9fe51bbdbf8cadba8de0d5ed7240285
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>