Ensures internal unit is initialised.
Run kreportexample and ensure page width is as before. Change page size. Open existing reports in Kexi
I am rather certain -- it's centralized change. We will able for example to add an #ifdef for Qt that fixes the issue, once there's one. I propose to add a KReportPrivate::PageLayout class in KReportUtils_p.h.
By the way: page -> pageLayout
|172 ↗||(On Diff #10335)|
//! This class is wrapper that fixes a critical QTBUG-47551 bug in default constructor of QPageLayout //! Default constructor of QPageLayout does not initialize units. //! https://bugreports.qt.io/browse/QTBUG-47551 //! @todo remove this class and go back to QPageLayout when the faulty QPageLayout implementations are no longer on the wild. That's probably for Qt 6.
|174 ↗||(On Diff #10335)|
For completeness PageLayout(const QPageLayout &pageLayout) could be nice (nonexplicit).