aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorrenatofilho <renato.filho@openbossa.org>2010-09-20 11:17:28 -0300
committerrenatofilho <renato.filho@openbossa.org>2010-09-20 14:20:56 -0300
commitb476759ed077e45f6d9ec78cf367554f1f5114f3 (patch)
tree704fbd5c4d0fe2612416cea6159f05a40e8d1eab /tests
parent67cb84debbd19bd47ee0281fd014bd77042f1e4c (diff)
Updated test with new Property name.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/QtCore/qobject_property_test.py4
-rw-r--r--tests/QtScript/property_test.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/QtCore/qobject_property_test.py b/tests/QtCore/qobject_property_test.py
index fcf8e8978..74068940a 100644
--- a/tests/QtCore/qobject_property_test.py
+++ b/tests/QtCore/qobject_property_test.py
@@ -23,7 +23,7 @@ class ExQObject(QObject):
def getProperty(self):
return self._value
- registeredproperty = QProperty(int, getProperty, setProperty)
+ registeredproperty = Property(int, getProperty, setProperty)
class MyObject(QObject):
'''Test Property'''
@@ -34,7 +34,7 @@ class MyObject(QObject):
def trySetPP(self):
self.pp = 0
- pp = QProperty(int, readPP)
+ pp = Property(int, readPP)
class PropertyCase(unittest.TestCase):
'''Test case for QObject properties'''
diff --git a/tests/QtScript/property_test.py b/tests/QtScript/property_test.py
index 6d2041699..52c01f7cb 100644
--- a/tests/QtScript/property_test.py
+++ b/tests/QtScript/property_test.py
@@ -1,6 +1,6 @@
import unittest
-from PySide.QtCore import QObject, QProperty, QCoreApplication
+from PySide.QtCore import QObject, Property, QCoreApplication
from PySide.QtScript import QScriptEngine
class MyObject(QObject):
@@ -20,7 +20,7 @@ class MyObject(QObject):
def delX(self):
self._p = 0
- x = QProperty(int, getX, setX, resetX, delX)
+ x = Property(int, getX, setX, resetX, delX)
class QPropertyTest(unittest.TestCase):