_hints = 0;
action_hints |= ObserverHints::ActionPushDown;
action_hints |= ObserverHints::ActionPushUp;
action_hints |= ObserverHints::ActionSwitchView;
observer_widget->activeHints()->setActionHints(action_hints);

// We also tell the widget that we want a toolbar with the actions at the top of the widget:
ObserverHints::DisplayFlags display_flags = 0;
display_flags |= ObserverHints::ItemView;
display_flags |= ObserverHints::NavigationBar;
display_flags |= ObserverHints::ActionToolBar;
observer_widget->act