diff options
author | Katarina Behrens <Katarina.Behrens@cib.de> | 2019-03-15 23:29:55 +0100 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2019-03-19 20:33:03 +0100 |
commit | 612650147cb85e52d317142d022db99a28c0d98a (patch) | |
tree | 8152c9c43019c7f2e5bffa4e0759a4c10bc1c690 /vcl/qt5/Qt5Menu.cxx | |
parent | daa4aef1512eb7a6b615720725a5a682b0030f8e (diff) |
tdf#123379: implement native menu bar toggle on/off
qt5 didn't provide implementation of virtual SalMenu::ShowMenuBar
so native menu bar was visible at all times. Hopefully notebookbar
fans are happier now
Change-Id: Ie581397521369160e16f40231bade40100dcd6f6
Reviewed-on: https://gerrit.libreoffice.org/69327
Tested-by: Jenkins
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'vcl/qt5/Qt5Menu.cxx')
-rw-r--r-- | vcl/qt5/Qt5Menu.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/qt5/Qt5Menu.cxx b/vcl/qt5/Qt5Menu.cxx index 4fdebe00f226..6112a7aa4e6c 100644 --- a/vcl/qt5/Qt5Menu.cxx +++ b/vcl/qt5/Qt5Menu.cxx @@ -544,6 +544,12 @@ Qt5Menu* Qt5Menu::GetTopLevel() return pMenu; } +void Qt5Menu::ShowMenuBar(bool bVisible) +{ + if (mpQMenuBar && (bVisible != mpQMenuBar->isVisible())) + bVisible ? mpQMenuBar->show() : mpQMenuBar->hide(); +} + const Qt5Frame* Qt5Menu::GetFrame() const { SolarMutexGuard aGuard; |