Refs #7582 Toolbar menu now works properly

The toolbar menu in View now displays as a next level menu rather than a context menu.
Refs #7582 Fixed indentation

Peter mentioned indentation, fixed.
Refs #7582 supressed CppCheck warning

The cppcheck warning was a false positive as the varaible wasn't allocated before.

I think the reason cppcheck didn't like it is because i allocate it in a function.
Merge remote-tracking branch 'origin/feature/7582_toolbar_menu'