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-08 11:49:28 +0100
commitee53d07ae17747cb81340c05983b1937bd23c136 (patch)
tree33d9f5847265cfd042a882ec64cd11be63f4bd38 /vcl
parent79cf98634354a8dcc320391b5c8fcd1dbb7f7089 (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>
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)