Remove wrapper for classes: QString, QStringRef, QLatin1String, QStringMatcher, QChar and QLatin1Char.
This commit is contained in:
parent
24a9445906
commit
e39bfefde9
32 changed files with 187 additions and 1189 deletions
|
|
@ -24,7 +24,7 @@ class MyObject(QObject):
|
|||
def foo(self):
|
||||
self._slotCalledCount = self._slotCalledCount + 1
|
||||
|
||||
@Slot(QString, int)
|
||||
@Slot(unicode, int)
|
||||
def mySlot4(self, a, b):
|
||||
self._slotCalledCount = self._slotCalledCount + 1
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ class StaticMetaObjectTest(unittest.TestCase):
|
|||
self.assert_(m.indexOfSlot('mySlot2(int)') > 0)
|
||||
self.assert_(m.indexOfSlot('mySlot2(QString)') > 0)
|
||||
self.assert_(m.indexOfSlot('mySlot3()') > 0)
|
||||
self.assert_(m.indexOfSlot('mySlot4(QString,int)') > 0)
|
||||
self.assert_(m.indexOfSlot('mySlot4(unicode,int)') > 0)
|
||||
|
||||
def testEmission(self):
|
||||
o = MyObject()
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@ class MyObject(QTimer):
|
|||
sig1 = Signal()
|
||||
sig2 = Signal(int, name='rangeChanged')
|
||||
sig3 = Signal(int)
|
||||
sig4 = Signal((int,), (QString,))
|
||||
sig5 = Signal((QString,), (int,))
|
||||
sig4 = Signal((int,), (unicode,))
|
||||
sig5 = Signal((unicode,), (int,))
|
||||
|
||||
|
||||
@Slot(int)
|
||||
|
|
@ -50,8 +50,8 @@ class SignalObjectTest(UsesQCoreApplication):
|
|||
|
||||
def testDictOperator(self):
|
||||
o = MyObject()
|
||||
o.sig4[QString].connect(o.slotString)
|
||||
o.sig4[QString].emit("PySide")
|
||||
o.sig4[unicode].connect(o.slotString)
|
||||
o.sig4[unicode].emit("PySide")
|
||||
self.assertEqual(o._s, "PySide")
|
||||
|
||||
def testGeneretedSignal(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue