Fix bug 736 - "Signal/Slot is not working at all"

Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Lauro Moura <lauro.neto@openbossa.org>
This commit is contained in:
Hugo Parente Lima 2011-03-21 18:08:49 -03:00
commit 7849b4262f
3 changed files with 21 additions and 1 deletions

View file

@ -45,6 +45,7 @@ PYSIDE_TEST(bug_696.py)
PYSIDE_TEST(bug_693.py)
PYSIDE_TEST(bug_714.py)
PYSIDE_TEST(bug_728.py)
PYSIDE_TEST(bug_736.py)
PYSIDE_TEST(customproxywidget_test.py)
PYSIDE_TEST(deepcopy_test.py)
PYSIDE_TEST(float_to_int_implicit_conversion_test.py)

19
tests/QtGui/bug_736.py Normal file
View file

@ -0,0 +1,19 @@
import unittest
from PySide.QtCore import *
from PySide.QtGui import *
class TestBug736 (unittest.TestCase):
def testIt(self):
app = QApplication([])
slider = QSlider(Qt.Horizontal)
slider2 = QSlider(Qt.Horizontal)
slider2.setMaximum(10)
slider.valueChanged[int].connect(slider2.setMaximum)
slider.valueChanged[int].emit(100)
self.assertEqual(slider2.maximum(), 100)
if __name__ == '__main__':
unittest.main()