[mac] fix ui bugs
Merge pull request #198 from haiwen/maintain_patch_3

[mac] fix ui bugs
[mac] use qsettings to store defaults, and fix related bug