summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTasuku Suzuki <[email protected]>2024-10-05 22:47:11 +0900
committerVolker Hilsheimer <[email protected]>2024-10-08 05:14:10 +0000
commitfb00ecd0a7925f95fa32a7772e9c70149468ee2d (patch)
tree83e48af828e70087c1239b7c3fa3ced0cdfa14d3
parent4edcafe5263de9e539d37498464930d98ee734cf (diff)
QPainterPath: reset .nospace() in QDebug operator<<(...)
Pick-to: 6.8 Change-Id: Ic06f376fe01db6d7340fa0e7071b01e00aa8caf9 Reviewed-by: Volker Hilsheimer <[email protected]>
-rw-r--r--src/gui/painting/qpainterpath.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qpainterpath.cpp b/src/gui/painting/qpainterpath.cpp
index 9dbfa6c4065..e55422a672c 100644
--- a/src/gui/painting/qpainterpath.cpp
+++ b/src/gui/painting/qpainterpath.cpp
@@ -3362,11 +3362,11 @@ void QPainterPath::computeControlPointRect() const
#ifndef QT_NO_DEBUG_STREAM
QDebug operator<<(QDebug s, const QPainterPath &p)
{
+ QDebugStateSaver saver(s);
s.nospace() << "QPainterPath: Element count=" << p.elementCount() << Qt::endl;
const char *types[] = {"MoveTo", "LineTo", "CurveTo", "CurveToData"};
for (int i=0; i<p.elementCount(); ++i) {
s.nospace() << " -> " << types[p.elementAt(i).type] << "(x=" << p.elementAt(i).x << ", y=" << p.elementAt(i).y << ')' << Qt::endl;
-
}
return s;
}