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. Pick-to: 5.15 6.0 6.1 Change-Id: I2d32da370c032949686757400cb7c28583d9d8ac Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
This commit is contained in:
parent
e704ff8eba
commit
c8f380bd13
@ -224,7 +224,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
QPageSize();
|
QPageSize();
|
||||||
explicit QPageSize(PageSizeId pageSizeId);
|
Q_IMPLICIT QPageSize(PageSizeId pageSizeId);
|
||||||
explicit QPageSize(const QSize &pointSize,
|
explicit QPageSize(const QSize &pointSize,
|
||||||
const QString &name = QString(),
|
const QString &name = QString(),
|
||||||
SizeMatchPolicy matchPolicy = FuzzyMatch);
|
SizeMatchPolicy matchPolicy = FuzzyMatch);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user