summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qpoint.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/tools/qpoint.cpp')
-rw-r--r--src/corelib/tools/qpoint.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/corelib/tools/qpoint.cpp b/src/corelib/tools/qpoint.cpp
index ebce6c9422..dc2a2d9739 100644
--- a/src/corelib/tools/qpoint.cpp
+++ b/src/corelib/tools/qpoint.cpp
@@ -33,7 +33,8 @@
#include "qpoint.h"
#include "qdatastream.h"
-#include "qdebug.h"
+
+#include <private/qdebug_p.h>
QT_BEGIN_NAMESPACE
@@ -447,14 +448,20 @@ QDataStream &operator>>(QDataStream &s, QPoint &p)
QDebug operator<<(QDebug dbg, const QPoint &p)
{
QDebugStateSaver saver(dbg);
- dbg.nospace() << "QPoint(" << p.x() << ',' << p.y() << ')';
+ dbg.nospace();
+ dbg << "QPoint" << '(';
+ QtDebugUtils::formatQPoint(dbg, p);
+ dbg << ')';
return dbg;
}
QDebug operator<<(QDebug dbg, const QPointF &p)
{
QDebugStateSaver saver(dbg);
- dbg.nospace() << "QPointF(" << p.x() << ',' << p.y() << ')';
+ dbg.nospace();
+ dbg << "QPointF" << '(';
+ QtDebugUtils::formatQPoint(dbg, p);
+ dbg << ')';
return dbg;
}
#endif