diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-10-04 19:08:29 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-10-05 14:19:59 -0300 |
commit | ebe20bd63fa677804a520df6ce1a2fd64a9401ad (patch) | |
tree | 4da28a15e8c68841d57681d9806e28ed8dee06ef /tests | |
parent | 5f21b20e722a41bd3d1d9bbf4c36f8f08aba4f63 (diff) |
Add unit test for bug#172
Diffstat (limited to 'tests')
-rw-r--r-- | tests/QtGui/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/QtGui/bug_172.py | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/QtGui/CMakeLists.txt b/tests/QtGui/CMakeLists.txt index f2603215b..350948bf3 100644 --- a/tests/QtGui/CMakeLists.txt +++ b/tests/QtGui/CMakeLists.txt @@ -1,6 +1,7 @@ #Keep this in alphabetical sort PYSIDE_TEST(api2_test.py) +PYSIDE_TEST(bug_172.py) PYSIDE_TEST(bug_243.py) PYSIDE_TEST(bug_300_test.py) PYSIDE_TEST(bug_307.py) diff --git a/tests/QtGui/bug_172.py b/tests/QtGui/bug_172.py new file mode 100644 index 000000000..d14c94c5b --- /dev/null +++ b/tests/QtGui/bug_172.py @@ -0,0 +1,13 @@ +from PySide.QtGui import * + +if __name__ == '__main__': + app = QApplication([]) + + wdg = QWidget() + + hbox = QHBoxLayout() + + vbox = QVBoxLayout() + vbox.addLayout(hbox) + + wdg.setLayout(vbox) |