Designer: Tests: Fix compilation with Qt4

Change-Id: Ia9cfc1caf770b23262e606d9f485b6c0dd9bef2b
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>