summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2018-12-08 03:35:09 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2018-12-14 14:59:34 +0100
commit2aee047beae576823c4625678c6220012ff95c88 (patch)
tree26fbc101e4342a1fb43f0a8eca6f1029e4db626e /vcl
parentbb7bf732bae1e2f4ebf0ed4e0307dbd63dade1d0 (diff)
tdf#121974 Convert Qt menu text as needed
Just as is already done in 'Qt5Menu::InsertMenuItem', the text needs to be converted in 'Qt5Menu::SetItemText' as well. Change-Id: I03c8f2e6fe0e926a3f7e4be5b7eac70f1bd9850f Reviewed-on: https://gerrit.libreoffice.org/64796 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> (cherry picked from commit ee53d07ae17747cb81340c05983b1937bd23c136) Reviewed-on: https://gerrit.libreoffice.org/65154
Diffstat (limited to 'vcl')
-rw-r--r--vcl/qt5/Qt5Menu.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/vcl/qt5/Qt5Menu.cxx b/vcl/qt5/Qt5Menu.cxx
index acb8f957fcf6..130d7c583f58 100644
--- a/vcl/qt5/Qt5Menu.cxx
+++ b/vcl/qt5/Qt5Menu.cxx
@@ -287,7 +287,11 @@ void Qt5Menu::SetItemText(unsigned, SalMenuItem* pItem, const OUString& rText)
Qt5MenuItem* pSalMenuItem = static_cast<Qt5MenuItem*>(pItem);
QAction* pAction = pSalMenuItem->getAction();
if (pAction)
- pAction->setText(toQString(rText));
+ {
+ OUString aText(rText);
+ NativeItemText(aText);
+ pAction->setText(toQString(aText));
+ }
}
void Qt5Menu::SetItemImage(unsigned, SalMenuItem* pItem, const Image& rImage)