Commit 4bc928e1 authored by Christophe Devriese's avatar Christophe Devriese

removed a bit of qt 2.x compatibility code

svn path=/trunk/kdegraphics/kpdf/; revision=275824
parent b17773ca
......@@ -564,18 +564,9 @@ int QOutputDevPixmap::convertSubpath ( GfxState *state, GfxSubpath *subpath, QPo
QPointArray tmp;
tmp. setPoints ( 4, qRound ( x0 ), qRound ( y0 ), qRound ( x1 ), qRound ( y1 ),
qRound ( x2 ), qRound ( y2 ), qRound ( x3 ), qRound ( y3 ));
#if QT_VERSION < 300
tmp = tmp. quadBezier ( );
for ( uint loop = 0; loop < tmp. count ( ); loop++ ) {
QPoint p = tmp. point ( loop );
points. putPoints ( points. count ( ), 1, p. x ( ), p. y ( ));
}
#else
tmp = tmp. cubicBezier ( );
points. putPoints ( points. count ( ), tmp. count ( ), tmp );
#endif
i += 3;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment