Qt UI: fix dock related features for Mac OS X