Support QPoint(QPoint) constructor.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
This commit is contained in:
parent
1b943ab43c
commit
5bf7e701e7
2 changed files with 27 additions and 0 deletions
21
tests/qtcore/qpoint_test.py
Normal file
21
tests/qtcore/qpoint_test.py
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
|
||||
'''Test cases for QPoint and QPointF'''
|
||||
|
||||
import unittest
|
||||
|
||||
from PySide.QtCore import QPoint, QPointF
|
||||
|
||||
|
||||
class QPointTest(unittest.TestCase):
|
||||
|
||||
def testQPointCtor(self):
|
||||
point = QPoint(QPoint(10,20))
|
||||
|
||||
class QPointFTest(unittest.TestCase):
|
||||
|
||||
def testQPointFCtor(self):
|
||||
pointf = QPointF(QPoint(10,20))
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue