Properly set the MacUseNSWindow flag and recreate parent hierarchy

Change-Id: Idc113eb5c8a9e989487822e9b7acafbe13ba4260
Use WA_MacUseNativeNSWindow on QToolBar and QDockWidget

Change-Id: I33c511ce6d32b0ba7448f246f19dc71424ed324a