[Libreoffice-commits] core.git: vcl/qt5
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Jan 10 12:41:08 UTC 2019
vcl/qt5/Qt5Menu.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 4de638c14c0a74e29e213fd53cd01cad93285aa4
Author: Katarina Behrens <Katarina.Behrens at cib.de>
AuthorDate: Thu Dec 27 17:27:54 2018 +0100
Commit: Katarina Behrens <Katarina.Behrens at cib.de>
CommitDate: Thu Jan 10 13:40:45 2019 +0100
tdf#120877: make menu items checkable as needed
Change-Id: I5a07526aa5187313977d6f7c244541be83b5edbc
Reviewed-on: https://gerrit.libreoffice.org/65930
Tested-by: Jenkins
Reviewed-by: Katarina Behrens <Katarina.Behrens at cib.de>
diff --git a/vcl/qt5/Qt5Menu.cxx b/vcl/qt5/Qt5Menu.cxx
index 130d7c583f58..51fca6cff27b 100644
--- a/vcl/qt5/Qt5Menu.cxx
+++ b/vcl/qt5/Qt5Menu.cxx
@@ -266,7 +266,10 @@ void Qt5Menu::CheckItem(unsigned nPos, bool bChecked)
Qt5MenuItem* pSalMenuItem = GetItemAtPos(nPos);
QAction* pAction = pSalMenuItem->getAction();
if (pAction)
+ {
+ pAction->setCheckable(true);
pAction->setChecked(bChecked);
+ }
}
}
More information about the Libreoffice-commits
mailing list