Fix bug#347 - "Setting properties in constructors gives incorrect results"
Added new function to libpyside: "fillQtProperties".
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Renato Araújo <renato.filho@openbossa.org>
This commit is contained in:
parent
cd7dac40f7
commit
87ea5d920c
4 changed files with 67 additions and 0 deletions
|
|
@ -60,6 +60,7 @@ PYSIDE_TEST(qtimer_singleshot_test.py)
|
|||
PYSIDE_TEST(qtimer_timeout_test.py)
|
||||
PYSIDE_TEST(qtnamespace_test.py)
|
||||
PYSIDE_TEST(qurl_test.py)
|
||||
PYSIDE_TEST(setprop_on_ctor_test.py)
|
||||
PYSIDE_TEST(static_method_test.py)
|
||||
PYSIDE_TEST(static_protected_methods_test.py)
|
||||
PYSIDE_TEST(thread_signals_test.py)
|
||||
|
|
|
|||
12
tests/QtCore/setprop_on_ctor_test.py
Normal file
12
tests/QtCore/setprop_on_ctor_test.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/python
|
||||
import unittest
|
||||
from PySide.QtCore import *
|
||||
|
||||
|
||||
class SetPropOnCtorTest(unittest.TestCase):
|
||||
def testIt(self):
|
||||
obj = QEventTransition(targetStates = [QState()])
|
||||
self.assertEqual(len(obj.targetStates()), 1);
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue