Skip to content

feat(ui): make toolbar hideable

Michaël KUGLER requested to merge 1024-feat-ui-make-toolbar-hideable into dev

Description

Make the toolbar hideable.

  • Enhance the IToolBarLayoutManager with a setVisible(bool isVisible) method
  • Get the toggleViewAction QAction from the toolbar in the ToolBarLayoutManager and store it
  • Set the toggleViewAction check state and trigger it when isVisible is called
  • Add slots in the IToolBar to hide/show/setVisibility

Closes #1024 (closed)

How to test it?

add a SAction in an xml and connect it to a toolbar/hide or toolbar/show slot.

Verify that the toolbar disappears and comes back again.

Edited by Michaël KUGLER

Merge request reports