Create unit test for bug #834
Signed-off-by: Paulo Alcantara <paulo.alcantara@openbossa.org>
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
This commit is contained in:
parent
bc3a572c5a
commit
d03ba5bb65
2 changed files with 19 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ PYSIDE_TEST(bug_723.py)
|
||||||
PYSIDE_TEST(bug_724.py)
|
PYSIDE_TEST(bug_724.py)
|
||||||
PYSIDE_TEST(bug_826.py)
|
PYSIDE_TEST(bug_826.py)
|
||||||
PYSIDE_TEST(bug_829.py)
|
PYSIDE_TEST(bug_829.py)
|
||||||
|
PYSIDE_TEST(bug_834.py)
|
||||||
PYSIDE_TEST(blocking_signals_test.py)
|
PYSIDE_TEST(blocking_signals_test.py)
|
||||||
PYSIDE_TEST(child_event_test.py)
|
PYSIDE_TEST(child_event_test.py)
|
||||||
PYSIDE_TEST(deepcopy_test.py)
|
PYSIDE_TEST(deepcopy_test.py)
|
||||||
|
|
|
||||||
18
tests/QtCore/bug_834.py
Normal file
18
tests/QtCore/bug_834.py
Normal file
|
|
@ -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_()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue