Qt: menu, code simplification.