mirror of
https://github.com/LibreOffice/core.git
synced 2025-08-11 23:24:16 +00:00
tdf#130857 qt weld: Convert accelerators for frame/group box
Convert the accelerators between the Qt and VCL version as needed. Otherwise, the text for the first GtkFrame/QGroupBox in the "Go to Sheet" dialog newly supported since Change-Id: I8fe3383f5857d25ee08db84be681ecb39dea4d3c Author: Michael Weghorn <m.weghorn@posteo.de> Date: Fri Jul 18 18:20:33 2025 +0200 tdf#130857 qt weld: Support Calc "Go to Sheet" dialog is shown as literal "~Type a Sheet Name". Change-Id: I8da60c15eb1ea1748c7a96a66b5b2cdfed3d3602 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188050 Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> Tested-by: Jenkins
This commit is contained in:
@ -21,7 +21,8 @@ QtInstanceFrame::QtInstanceFrame(QGroupBox* pGroupBox)
|
||||
void QtInstanceFrame::set_label(const OUString& rText)
|
||||
{
|
||||
SolarMutexGuard g;
|
||||
GetQtInstance().RunInMainThread([&] { m_pGroupBox->setTitle(toQString(rText)); });
|
||||
GetQtInstance().RunInMainThread(
|
||||
[&] { m_pGroupBox->setTitle(vclToQtStringWithAccelerator(rText)); });
|
||||
}
|
||||
|
||||
OUString QtInstanceFrame::get_label() const
|
||||
@ -29,7 +30,8 @@ OUString QtInstanceFrame::get_label() const
|
||||
SolarMutexGuard g;
|
||||
|
||||
OUString sLabel;
|
||||
GetQtInstance().RunInMainThread([&] { sLabel = toOUString(m_pGroupBox->title()); });
|
||||
GetQtInstance().RunInMainThread(
|
||||
[&] { sLabel = qtToVclStringWithAccelerator(m_pGroupBox->title()); });
|
||||
|
||||
return sLabel;
|
||||
}
|
||||
|
Reference in New Issue
Block a user