[Global Menu] Respect toplevel menu action visibility
Kolourpaint has hidden "Tools" menu, which would show up in global menu otherwise. Moreover, don't `void*` cast so QML can access the `QAction` BUG: 443505 (cherry picked from commit 2e056ed6)
Kolourpaint has hidden "Tools" menu, which would show up in global menu otherwise. Moreover, don't `void*` cast so QML can access the `QAction` BUG: 443505 (cherry picked from commit 2e056ed6)
mentioned in commit 536d695a
·mentioned in commit 536d695a