Moved modules.ui.qt import only when required.

Signed-off-by: Tomasz CEDRO <CeDeROM@tlen.pl>