Bring back Mac dependent code in QBoxLayout, QGridLayout