diff options
author | Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> | 2019-02-18 13:04:42 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-02-26 08:38:53 +0000 |
commit | 5dcebb60c75b03cec2db63ecc618740a78d7f084 (patch) | |
tree | a016f62d42a9896630bfd8781de956463ad29e68 /sources/pyside2/PySide2/QtPrintSupport | |
parent | 5ae663ff57efb4735ef1e69055ea68d904deb3b3 (diff) |
Add setPageSize new signature to QPageSize
The generated code only takes an enum from the meta class
(QPagedPaintDevice) as valid argument of the function `setPageSize`
(QPagedPaintDevice::PageSize), but it should also accept a QPageSize
argument.
Change-Id: Ia31a69a5e52e781844ce6a7e4ff6e5e95d17563d
Fixes: PYSIDE-940
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside2/PySide2/QtPrintSupport')
-rw-r--r-- | sources/pyside2/PySide2/QtPrintSupport/typesystem_printsupport_common.xml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sources/pyside2/PySide2/QtPrintSupport/typesystem_printsupport_common.xml b/sources/pyside2/PySide2/QtPrintSupport/typesystem_printsupport_common.xml index 5ec49c030..5026997c1 100644 --- a/sources/pyside2/PySide2/QtPrintSupport/typesystem_printsupport_common.xml +++ b/sources/pyside2/PySide2/QtPrintSupport/typesystem_printsupport_common.xml @@ -104,6 +104,12 @@ <extra-includes> <include file-name="QPrinterInfo" location="global"/> </extra-includes> + <!-- fixme: Check if this is still required in Qt 6: + bool QPagedPaintDevice::setPageSize(QPageSize) + void QPagedPaintDevice::setPageSize(QPagedPaintDevice::PageSize) --> + <add-function signature="setPageSize(const QPageSize&)" return-type="bool"> + <inject-code file="../glue/qtprintsupport.cpp" snippet="setpagesize" /> + </add-function> </object-type> <object-type name="QPrintPreviewDialog"/> |