From adac79f08bff1e299eb61a2341383350602b4505 Mon Sep 17 00:00:00 2001 From: Hugo Parente Lima Date: Tue, 26 Apr 2011 17:58:45 -0300 Subject: Fix bugs 776 and 777 Bug 776 - "Operator "QPolygon::operator<<(QPoint)" missing" Bug 777 - "Operator "QPolygon::operator<<(QVector)" missing" --- tests/QtGui/qpolygonf_test.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/QtGui') diff --git a/tests/QtGui/qpolygonf_test.py b/tests/QtGui/qpolygonf_test.py index 83e643c36..f842eb43b 100644 --- a/tests/QtGui/qpolygonf_test.py +++ b/tests/QtGui/qpolygonf_test.py @@ -18,5 +18,11 @@ class QPolygonFNotIterableTest(unittest.TestCase): self.assertEqual(int(point.y()), i) i += 1; + def testPolygonShiftOperators(self): + p = QPolygon() + self.assertEqual(len(p), 0) + p << QPoint(10, 20) << QPoint(20, 30) << [QPoint(20, 30), QPoint(40, 50)] + self.assertEqual(len(p), 4) + if __name__ == '__main__': unittest.main() -- cgit v1.2.3