QAction: Remove duplicated QDebug logic for handling null-actions

We already include the action's address by printing
static_cast<const void *>(action), so no need to include
the additional "0", as that just results in "QAction(0x00)".

Change-Id: I8ce1f5030db146a737fa73bd8f2b86e89401d345
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit a85c336597a80ca96ea745830c0d9776b98c835c)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Tor Arne Vestbø 2024-06-04 17:42:18 +02:00 committed by Qt Cherry-pick Bot
parent dbb4a80a29
commit 00c17ac63a

View File

@ -1315,8 +1315,6 @@ Q_GUI_EXPORT QDebug operator<<(QDebug d, const QAction *action)
QtDebugUtils::formatQEnum(d, action->menuRole());
d << " enabled=" << action->isEnabled();
d << " visible=" << action->isVisible();
} else {
d << '0';
}
d << ')';
return d;