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:
parent
dbb4a80a29
commit
00c17ac63a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user