aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/QtGui/CMakeLists.txt1
-rw-r--r--tests/QtGui/bug_589.py19
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/QtGui/CMakeLists.txt b/tests/QtGui/CMakeLists.txt
index 603280881..e8d48045d 100644
--- a/tests/QtGui/CMakeLists.txt
+++ b/tests/QtGui/CMakeLists.txt
@@ -28,6 +28,7 @@ PYSIDE_TEST(bug_549.py)
PYSIDE_TEST(bug_569.py)
PYSIDE_TEST(bug_576.py)
PYSIDE_TEST(bug_585.py)
+PYSIDE_TEST(bug_589.py)
PYSIDE_TEST(customproxywidget_test.py)
PYSIDE_TEST(deepcopy_test.py)
PYSIDE_TEST(float_to_int_implicit_conversion_test.py)
diff --git a/tests/QtGui/bug_589.py b/tests/QtGui/bug_589.py
new file mode 100644
index 000000000..0c7cdecbe
--- /dev/null
+++ b/tests/QtGui/bug_589.py
@@ -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()