I'm working on a file, and notice one problem it has is due to:

QPointArray
The QPointArray class has been renamed QPolygon in Qt 4 and has undergone 
significant changes. In Qt 3, QPointArray inherited from QMemArray<QPoint>. 
In Qt 4, QPolygon inherits from QVector<QPoint>. Everything mentioned in the 
section on QMemArray<T> apply for QPointArray as well.
The Qt3Support library contains a Q3PointArray class that inherits from 
QPolygon and provides a few functions that existed in QPointArray but no 
longer exist in QPolygon. These functions include Q3PointArray::makeArc(), 
Q3PointArray::makeEllipse(), and Q3PointArray::cubicBezier(). In Qt 4, we 
recommend that you use QPainterPath for representing arcs, ellipses, and 
Bezier curves, rather than QPolygon.
The QPolygon::setPoints() and QPolygon::putPoints() functions return void in 
Qt 4. The corresponding Qt 3 functions returned a bool indicating whether the 
array was successfully resized or not. This can now be checked by checking 
QPolygon::size() after the call.


I haven't looked at whether we should switch to QPolygon or Q3PointArray at 
all.  I just thought I'd throw this out while I'm looking  at it in 
src/gui/widgets/QuantizeParameters.cpp

This probably didn't make it onto the list during the mechanized phase because 
it doesn't occur frequently.

Here:

./src/gui/editors/matrix/QCanvasMatrixDiamond.cpp:QPointArray 
QCanvasMatrixDiamond::areaPoints() const
./src/gui/editors/matrix/QCanvasMatrixDiamond.cpp:    QPointArray pa(4);
./src/gui/editors/matrix/QCanvasMatrixDiamond.cpp:    QPointArray pa(4);
./src/gui/editors/notation/NotePixmapFactory.cpp:            QPointArray 
qp(4);
./src/gui/editors/notation/NotePixmapFactory.cpp:        QPointArray qp(ppc);
./src/gui/editors/notation/NotePixmapFactory.cpp:        QPointArray qp(ppc);
./src/gui/general/BarLine.cpp:QPointArray
./src/gui/general/BarLine.cpp:    QPointArray p(4);

-- 
D. Michael McIntyre 

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to