[project] Another attempt to fix Travis-CI build

- use git clone --depth 1
- build Qt without widgets
- use checkout instead of cherry-pick
- delete qtbase and qtdeclarative dirs after build