[Okular-devel] Re: Question about XPS code
Albert Astals Cid
aacid at kde.org
Sun May 8 20:19:59 CEST 2011
A Sunday, May 08, 2011, Pino Toscano va escriure:
> Hi,
>
> Alle domenica 8 maggio 2011, Albert Astals Cid ha scritto:
> > i just saw we have this code
> >
> > case 'q': // Quadratic bezier curve
> >
> > while (token.type == abtNumber)
> > {
> >
> > QPointF point1 = getPointFromString(&token, isRelative,
> >
> > currPos);
> >
> > QPointF point2 = getPointFromString(&token, isRelative,
> >
> > currPos);
> >
> > path.quadTo(point2, point2);
> >
> > }
> > break;
> >
> > Brad/Jiri should the first point2 be point1?
>
> According to the specs:
> - point1 is the control point
> - point2 is the end point
> so, according to the QPainterPath API, it should be
> path.quadTo(point1, point2);
> as you suggests.
Done.
Albert
More information about the Okular-devel
mailing list