Fixes bug #742 - Method "void QPrinter::getPageMargins(qreal*,qreal*,qreal*,qreal*,Unit) const" missing
Also added unit tests. http://bugs.pyside.org/show_bug.cgi?id=742
This commit is contained in:
parent
6efe441b76
commit
eed7193f32
3 changed files with 38 additions and 3 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue