uic: Generate string-based connections for QLCDNumber::display()
There are still ambiguous overloads of display(), which cause PMF-syntax to fail. Pick-to: 6.5 6.4 Task-number: QTBUG-110952 Change-Id: I0887a5a06b026e4d5a20ef732d5892c8ac7fb6db Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>bb10
parent
c4b32597e7
commit
94c16517b3
|
|
@ -2605,6 +2605,10 @@ ConnectionSyntax WriteInitialization::connectionSyntax(const language::SignalSlo
|
|||
return ConnectionSyntax::StringBased;
|
||||
}
|
||||
|
||||
// QTBUG-110952, ambiguous overloads of display()
|
||||
if (receiver.className == u"QLCDNumber" && receiver.signature.startsWith(u"display("))
|
||||
return ConnectionSyntax::StringBased;
|
||||
|
||||
if ((sender.name == m_mainFormVarName && m_customSignals.contains(sender.signature))
|
||||
|| (receiver.name == m_mainFormVarName && m_customSlots.contains(receiver.signature))) {
|
||||
return ConnectionSyntax::StringBased;
|
||||
|
|
|
|||
Loading…
Reference in New Issue