QtWidgets: code tidies: use the 4-arg connect overload
The 3-arg connect is error-prone and makes the lifetime of the connection unclear. Change-Id: I1b6b10d814412f02ae534d408723762ba7cd815b Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>bb10
parent
c87cbc38f1
commit
ec653fad39
|
|
@ -2516,7 +2516,7 @@ bool QComboBoxPrivate::showNativePopup()
|
|||
currentItem = item;
|
||||
|
||||
IndexSetter setter = { i, q };
|
||||
QObject::connect(item, &QPlatformMenuItem::activated, setter);
|
||||
QObject::connect(item, &QPlatformMenuItem::activated, q, setter);
|
||||
|
||||
m_platformMenu->insertMenuItem(item, 0);
|
||||
m_platformMenu->syncMenuItem(item);
|
||||
|
|
|
|||
Loading…
Reference in New Issue