QPageSize: make PageSizeId ctor non-explicit
A QPageSize::PageSizeId is a faithful representation of a QPageSize, so the corresponding QPageSize ctor shouldn't be explicit. [ChangeLog][QtGui][QPageSize] Conversion from a QPageSize::PageSizeId is now implicit. Change-Id: I2d32da370c032949686757400cb7c28583d9d8ac Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> (cherry picked from commit c8f380bd13f077cd797edbdb55723a2524f55c78) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
bf1791c562
commit
b552e75561
@ -224,7 +224,7 @@ public:
|
||||
};
|
||||
|
||||
QPageSize();
|
||||
explicit QPageSize(PageSizeId pageSizeId);
|
||||
Q_IMPLICIT QPageSize(PageSizeId pageSizeId);
|
||||
explicit QPageSize(const QSize &pointSize,
|
||||
const QString &name = QString(),
|
||||
SizeMatchPolicy matchPolicy = FuzzyMatch);
|
||||
|
Loading…
x
Reference in New Issue
Block a user