QmlDesigner: Avoid repetitive calls

Change-Id: Id33e46f925c94a970b001e7f34b7deb56224cc97
Reviewed-by: Marco Bubke <marco.bubke@digia.com>