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:
Hugo Parente Lima 2010-09-15 10:44:27 -03:00
commit 87ea5d920c
4 changed files with 67 additions and 0 deletions

View file

@ -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)

View 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()