summaryrefslogtreecommitdiffstats
path: root/tests/QtGui/bug_736.py
blob: 49a954cccfdb222f61d05f9b54c9a480b143830d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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()