QSystemTrayIcon: remove unused deprecated call to QAction::associatedWidgets()
This call was added in bcaff2b06fc46fce8a3ae6d613c025c8d097229c but does not seem to be necessary. So just remove it. Task-number: QTBUG-104857 Change-Id: I2068bd10c6de211dd31f09ff978e8b8ba9cb70db Reviewed-by: Marc Mutz <marc.mutz@qt.io> (cherry picked from commit 4ae85ae441ea683cbc67fdc1d2bdfcf66fa00bc3) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
aa3d8e7d0f
commit
6ce64c72c4
@ -701,7 +701,6 @@ void QSystemTrayIconPrivate::addPlatformMenu(QMenu *menu) const
|
||||
// be higher than 3 levels.
|
||||
const auto actions = menu->actions();
|
||||
for (QAction *action : actions) {
|
||||
QList<QWidget *> associatedWidgets = action->associatedWidgets();
|
||||
if (action->menu())
|
||||
addPlatformMenu(action->menu());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user