aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtGui
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-05-05 14:17:22 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:54:19 -0300
commit7542b1c7265d7d686d38bad3256bbd5bb2040c7a (patch)
tree017d7868d2e35de4593e80faff247770d4d3059f /tests/QtGui
parentadf13f83e978a1ef07f0052847d6e02bd1215c43 (diff)
Moved unit test of bug 834 from QtCore to QtGui, as it tests QtGui classes.
Diffstat (limited to 'tests/QtGui')
-rw-r--r--tests/QtGui/CMakeLists.txt1
-rw-r--r--tests/QtGui/bug_834.py18
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/QtGui/CMakeLists.txt b/tests/QtGui/CMakeLists.txt
index d86fbf31b..97eb9c33d 100644
--- a/tests/QtGui/CMakeLists.txt
+++ b/tests/QtGui/CMakeLists.txt
@@ -55,6 +55,7 @@ PYSIDE_TEST(bug_778.py)
PYSIDE_TEST(bug_785.py)
PYSIDE_TEST(bug_793.py)
PYSIDE_TEST(bug_811.py)
+PYSIDE_TEST(bug_834.py)
PYSIDE_TEST(bug_836.py)
PYSIDE_TEST(bug_844.py)
PYSIDE_TEST(customproxywidget_test.py)
diff --git a/tests/QtGui/bug_834.py b/tests/QtGui/bug_834.py
new file mode 100644
index 000000000..efb0cdfdb
--- /dev/null
+++ b/tests/QtGui/bug_834.py
@@ -0,0 +1,18 @@
+from PySide import QtCore, QtGui
+
+class Window(QtGui.QMainWindow):
+ def childEvent(self, event):
+ super(Window, self).childEvent(event)
+
+app = QtGui.QApplication([])
+window = Window()
+
+dock1 = QtGui.QDockWidget()
+dock2 = QtGui.QDockWidget()
+window.addDockWidget(QtCore.Qt.LeftDockWidgetArea, dock1)
+window.addDockWidget(QtCore.Qt.LeftDockWidgetArea, dock2)
+window.tabifyDockWidget(dock1, dock2)
+
+window.show()
+QtCore.QTimer.singleShot(0, window.close)
+app.exec_()