Bugzilla – Bug 287
Replace renamed functions with overloads: QTextFormat, QRubberBand, QSpinBox, QTextBrowser, QDoubleSpinBox, QPainter, QStackedLayout, QTextList
Last modified: 2010-09-10 19:21:39 EEST
PySide Bugzilla Closed for New Bugs
PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.
There are a number of renamed functions in PySide that perhaps could be done with overloads instead. PyQt does use overloads in these cases. From QtGui/typesystem_gui_common.xml: <value-type name="QTextFormat" > <modify-function signature="setProperty(int,QVector<QTextLength>)" rename="setLengthVectorProperty"/> <object-type name="QRubberBand"> <modify-function signature="move(int,int)" rename="moveRubberBand"/> <modify-function signature="move(const QPoint &)" rename="moveRubberBand"/> <modify-function signature="resize(int,int)" rename="resizeRubberBand"/> <modify-function signature="resize(const QSize &)" rename="resizeRubberBand"/> <modify-function signature="setGeometry(int,int,int,int)" rename="setRubberBandGeometry"/> <modify-function signature="setGeometry(const QRect &)" rename="setRubberBandGeometry"/> <object-type name="QSpinBox"> <modify-function signature="valueChanged(const QString &)"> <rename to="valueStringChanged"/> <object-type name="QTextBrowser"> <modify-function signature="highlighted(const QString &)"> <rename to="highlightedString"/> <object-type name="QDoubleSpinBox"> <modify-function signature="valueChanged(const QString &)"> <rename to="valueStringChanged"/> <object-type name="QPainter"> <modify-function signature="drawLines(const QVector<QPoint> &)"> <rename to="drawLinesFromPoints"/> </modify-function> <modify-function signature="drawLines(const QVector<QPointF> &)"> <rename to="drawLinesFromPointsF"/> </modify-function> <modify-function signature="drawLines(const QVector<QLineF> &)"> <rename to="drawLinesF"/> </modify-function> <modify-function signature="drawRects(const QVector<QRectF> &)"> <rename to="drawRectsF"/>
Also maybe: <object-type name="QStackedLayout"> <modify-function signature="addWidget(QWidget *)"> <rename to="addStackedWidget" /> <inject-code class="target" position="beginning">addLayoutOwnership(%CPPSELF, %1);</inject-code> <object-type name="QTextList"> <modify-function signature="format()const" rename="textListFormat" />
(In reply to comment #1) I neglected to say the QStackedList and QTextFormat ones are not overloads, but the need to rename is not clear to me. PyQt does not rename them.
Fixed on commit: commit 533cdcd07b61ffe7d578f0c54b923a1fdbff2ced Author: Renato Filho <renato.filho@openbossa.org> Date: Thu Aug 12 14:56:25 2010 -0300