QPainterPath: reset .nospace() in QDebug operator<<(...)
Change-Id: Ic06f376fe01db6d7340fa0e7071b01e00aa8caf9 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit fb00ecd0a7925f95fa32a7772e9c70149468ee2d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
ff4252b0b6
commit
16410ae7be
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user