I used Inspector as a model. This seems to me more compact, as it connects directly to the action, rather than to another slot which modifies the action (and it also leaves the way open to signal the menu if the widget is made visible, rather than only invisible, should it ever be needed).