Apply the new QStyles correctly to the main menu when the style is changed.