Remove conversion warning in examples

Change-Id: I69944a417d40ad39d261b58a35eee4f84156995f
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Reviewed-by: Laszlo Papp <lpapp@kde.org>
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Update tests so that it does not deadlock

still failes though

Change-Id: I7978c752b02f32a2e2c587c0ad674c51c5e0ad22
Reviewed-by: Andy Nichols <andy.nichols@digia.com>