Designer: Fix escaping '&' again

It seems impossible to show a single '&' character
on UI elements, as this character is also used for
the mnenomics.

So having a single '&' followed by a space creates
a space character, having two of them ("&&") creates
an underlined '&' (seen on Windows and Linux).

So let's just work around this long-living issue
and avoid the abbreviation.

Amends commit bc37a9ab7d

Change-Id: Ibcbfcac62d7be8c091ab2fc51621bddc9dad7e00
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
This commit is contained in:
Andre Hartmann
2020-11-09 08:03:34 +01:00
committed by André Hartmann
parent 4e4ec44a5d
commit c922709f33

View File

@@ -453,7 +453,7 @@ void FormEditorData::initDesignerSubWindows()
m_designerSubWindows[PropertyEditorSubWindow] = pe; m_designerSubWindows[PropertyEditorSubWindow] = pe;
QWidget *se = QDesignerComponents::createSignalSlotEditor(m_formeditor, nullptr); QWidget *se = QDesignerComponents::createSignalSlotEditor(m_formeditor, nullptr);
se->setWindowTitle(tr("Signals && Slots Editor")); se->setWindowTitle(tr("Signals and Slots Editor"));
se->setObjectName("SignalsAndSlotsEditor"); se->setObjectName("SignalsAndSlotsEditor");
m_designerSubWindows[SignalSlotEditorSubWindow] = se; m_designerSubWindows[SignalSlotEditorSubWindow] = se;