aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtGui/returnquadruplesofnumbers_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtGui/returnquadruplesofnumbers_test.py')
-rw-r--r--tests/QtGui/returnquadruplesofnumbers_test.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/QtGui/returnquadruplesofnumbers_test.py b/tests/QtGui/returnquadruplesofnumbers_test.py
index fad622e8f..7e5361936 100644
--- a/tests/QtGui/returnquadruplesofnumbers_test.py
+++ b/tests/QtGui/returnquadruplesofnumbers_test.py
@@ -1,5 +1,5 @@
import unittest
-from PySide.QtGui import QLayout, QWidget, QGraphicsLayout, QGraphicsLayoutItem, QTextCursor
+from PySide.QtGui import QLayout, QWidget, QGraphicsLayout, QGraphicsLayoutItem, QTextCursor, QPrinter
from helper import UsesQApplication
@@ -43,6 +43,13 @@ class ReturnsQuadruplesOfNumbers(UsesQApplication):
obj = QTextCursor()
self.assertEquals(obj.selectedTableCells(), (-1, -1, -1, -1))
+ def testQPrinterGetPageMargins(self):
+ # Bug #742
+ obj = QPrinter()
+ values = (10.0, 20.0, 30.0, 40.0, QPrinter.Point)
+ obj.setPageMargins(*values)
+ self.assertEquals(obj.getPageMargins(QPrinter.Point), values[:-1])
+
if __name__ == "__main__":
unittest.main()