Designer: Reduce superficial editor/widget dependencies

Change-Id: Ib19ef96fe12fe5d13757b9c766e00dca053ff750
Reviewed-by: Christian Stenger <christian.stenger@digia.com>