Reapply: Remove const/ref debug operator for QDockWidget
QObjects are usually passed by pointer, so we leave the override taking a pointer. This amendsbb10bbeff2a335, and reverts the previous revert inb148a362c3. Now that we have removed the incorrectly added operators from the 6.6 branches entirely, we can remove the unnecessary const/ref operator from 6.7. Task-number: QTBUG-119952 Pick-to: 6.7 Change-Id: Id196367ddf3ffb443db44194002f850dcfec5d79 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
parent
1aa16094c0
commit
4b64df5650
|
|
@ -1826,17 +1826,16 @@ QDebug operator<<(QDebug dbg, const QDockWidget *dockWidget)
|
|||
{
|
||||
QDebugStateSaver saver(dbg);
|
||||
dbg.nospace();
|
||||
return dockWidget ? dbg << *dockWidget : dbg << "QDockWidget(0x0)";
|
||||
}
|
||||
|
||||
QDebug operator<<(QDebug dbg, const QDockWidget &dockWidget)
|
||||
{
|
||||
QDebugStateSaver saver(dbg);
|
||||
dbg.nospace();
|
||||
dbg << "QDockWidget(" << static_cast<const void *>(&dockWidget);
|
||||
dbg << "->(ObjectName=" << dockWidget.objectName();
|
||||
dbg << "; floating=" << dockWidget.isFloating();
|
||||
dbg << "; features=" << dockWidget.features();
|
||||
if (!dockWidget) {
|
||||
dbg << "QDockWidget(0x0)";
|
||||
return dbg;
|
||||
}
|
||||
|
||||
dbg << "QDockWidget(" << static_cast<const void *>(dockWidget);
|
||||
dbg << "->(ObjectName=" << dockWidget->objectName();
|
||||
dbg << "; floating=" << dockWidget->isFloating();
|
||||
dbg << "; features=" << dockWidget->features();
|
||||
dbg << ";))";
|
||||
return dbg;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -65,7 +65,6 @@ public:
|
|||
{ return (allowedAreas() & area) == area; }
|
||||
|
||||
#ifndef QT_NO_DEBUG_STREAM
|
||||
friend Q_WIDGETS_EXPORT QDebug operator<<(QDebug dbg, const QDockWidget &dockWidget);
|
||||
friend Q_WIDGETS_EXPORT QDebug operator<<(QDebug dbg, const QDockWidget *dockWidget);
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue