hide submenus consisting entirely of hidden commands (Qt)