fix ColorDialog rendering on non-windowing platforms

Need to check the content Item's window rather than the Dialog's window.

Change-Id: I56dbaf163212f1deb68f6b9a984194ab1fbc3b98
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>