KStandardAction::showMenubar and native menubars

David Faure faure at kde.org
Sun Nov 6 09:43:42 UTC 2016


On mercredi 12 octobre 2016 00:05:30 CET Albert Astals Cid wrote:
> My current (yet to implement/test) idea is have KStandardAction::showMenubar
> check all the menubars of the top level windows of the app and if they are
> all marked as native, then return a dummy QAction that is not inserted in
> the menubar/actionCollection and that already returns "true" for checked.

Why not just call QAction::setVisible(false) ?

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Working on KDE Frameworks 5



More information about the Kde-frameworks-devel mailing list