Removed QVariant from PySide.

Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Marcelo Lira <marcelo.lira@openbossa.org>
This commit is contained in:
Hugo Parente Lima 2010-06-10 19:57:18 -03:00
commit 1b6337d8b4
18 changed files with 170 additions and 601 deletions

View file

@ -1,8 +1,7 @@
#!/usr/bin/python
import unittest
from sys import getrefcount
from PySide.QtCore import QObject, SIGNAL, QCoreApplication, QTimer, QVariant
from PySide.QtCore import QState, QFinalState, QStateMachine, QParallelAnimationGroup, QEventTransition
from PySide.QtCore import *
def addStates(transition):
sx = QState()
@ -19,11 +18,11 @@ class QAbstractTransitionTest(unittest.TestCase):
app = QCoreApplication([])
o = QObject()
o.setProperty("text", QVariant("INdT"))
o.setProperty("text", "INdT")
machine = QStateMachine()
s1 = QState()
s1.assignProperty(o, "text", QVariant("Rocks"))
s1.assignProperty(o, "text", "Rocks")
s2 = QFinalState()
t = s1.addTransition(o, SIGNAL("change()"), s2)