Created unit test for bug 589.

Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>
          Marcelo Lira <marcelo.lira@openbossa.org>
This commit is contained in:
Renato Araujo Oliveira Filho 2011-01-07 18:58:40 -03:00 • committed by Hugo Parente Lima
commit 1caaffba59
2 changed files with 20 additions and 0 deletions

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

@ -0,0 +1,19 @@
# trimmed down diagramscene.py to demonstrate crash in sizeHint()
import sys
from PySide import QtCore, QtGui
import unittest
class CustomWidget(QtGui.QGraphicsProxyWidget):
def itemChange(self, eventType, value):
QtGui.QGraphicsProxyWidget.itemChange(self, eventType, value)
class Bug589(unittest.TestCase):
def testCase(self):
widget = QtGui.QGraphicsProxyWidget()
custom = CustomWidget()
custom.setParentItem(widget)
if __name__ == "__main__":
app = QtGui.QApplication(sys.argv)
unittest.main()