summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2014-04-04 23:57:28 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-08 22:06:25 +0200
commit6115ba4f4e30808fb48948fbc02f33b5de5ed9b3 (patch)
tree2151484c5247e6374de33995f64637f5c3a065c0
parentc2b2ef32ca523bc030aadc1cea524d4918b03c09 (diff)
QPageSize: mark ctors explicit
A QSize or QSizeF is not an accurate representation of a QPageSize, so the corresponding constructor should be explicit. Change-Id: I6b1808e5f93e3caef948c0e5300bd3c20e3c4210 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: John Layt <jlayt@kde.org>
-rw-r--r--src/gui/painting/qpagesize.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/painting/qpagesize.h b/src/gui/painting/qpagesize.h
index c8a472747d..8b99d6af2e 100644
--- a/src/gui/painting/qpagesize.h
+++ b/src/gui/painting/qpagesize.h
@@ -230,12 +230,12 @@ public:
QPageSize();
explicit QPageSize(QPageSize::PageSizeId pageSizeId);
- QPageSize(const QSize &pointSize,
- const QString &name = QString(),
- QPageSize::SizeMatchPolicy matchPolicy = QPageSize::FuzzyMatch);
- QPageSize(const QSizeF &size, QPageSize::Unit units,
- const QString &name = QString(),
- QPageSize::SizeMatchPolicy matchPolicy = QPageSize::FuzzyMatch);
+ explicit QPageSize(const QSize &pointSize,
+ const QString &name = QString(),
+ QPageSize::SizeMatchPolicy matchPolicy = QPageSize::FuzzyMatch);
+ explicit QPageSize(const QSizeF &size, QPageSize::Unit units,
+ const QString &name = QString(),
+ QPageSize::SizeMatchPolicy matchPolicy = QPageSize::FuzzyMatch);
QPageSize(const QPageSize &other);
~QPageSize();