aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/qtgui/qgraphicsitem_isblocked_test.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/qtgui/qgraphicsitem_isblocked_test.py b/tests/qtgui/qgraphicsitem_isblocked_test.py
new file mode 100755
index 000000000..304a2be75
--- /dev/null
+++ b/tests/qtgui/qgraphicsitem_isblocked_test.py
@@ -0,0 +1,28 @@
+#!/usr/bin/python
+
+import unittest
+
+from PySide import QtGui, QtCore
+from helper import UsesQApplication
+
+class Item(QtGui.QGraphicsItem):
+
+ def __init__(self):
+ QtGui.QGraphicsItem.__init__(self)
+
+ def boundingRect(self):
+ return QtCore.QRectF(0, 0, 100, 100)
+
+ def paint(self, painter, option, widget):
+ painter.setBrush(QtGui.QColor(255, 255, 255))
+ painter.drawRect(0, 0, 100, 100)
+
+
+class QGraphicsViewIsBlockedTest(UsesQApplication):
+
+ def testIsBlockedByModalPanel(self):
+ item = Item()
+ item.isBlockedByModalPanel()
+
+if __name__ == "__main__":
+ unittest.main()