Fixes bugs 739 and 752.
Bug #739 - Method "QTransform::map(qreal x, qreal y, qreal* tx, qreal* ty) const" missing Bug #752 - Method "void QSplitter::getRange(int index, int* min, int* max) const" missing Also added unit tests.
This commit is contained in:
parent
a513d831cd
commit
2c6a44feee
5 changed files with 74 additions and 4 deletions
16
tests/QtGui/qtransform_test.py
Normal file
16
tests/QtGui/qtransform_test.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import unittest
|
||||
from PySide.QtGui import QTransform
|
||||
|
||||
class QTransformTest(unittest.TestCase):
|
||||
|
||||
def testMap(self):
|
||||
transform = QTransform()
|
||||
values = (10.0, 20.0)
|
||||
tx, ty = transform.map(*values)
|
||||
self.assert_(isinstance(tx, float))
|
||||
self.assert_(isinstance(ty, float))
|
||||
self.assertEqual((tx, ty), values)
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue