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
Giuseppe D'Angelo 2023-06-24 12:36:50 +02:00
parent c87cbc38f1
commit ec653fad39
1 changed files with 1 additions and 1 deletions

View File

@ -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);