fix/optimize dependencies on qt modules

Change-Id: I50bb083523431f9bd8d3da24e3364bb088c8f0ef
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>