Make constructing QFont from families explicit
Disallow implicit conversion from QStringList to QFont. Address API review comment. Pick-to: 6.1 Change-Id: I73eb3a49182865e050965e97d459463e73bcddfd Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
This commit is contained in:
parent
6c883f0341
commit
c0b6725674
@ -168,7 +168,7 @@ public:
|
|||||||
|
|
||||||
QFont();
|
QFont();
|
||||||
QFont(const QString &family, int pointSize = -1, int weight = -1, bool italic = false);
|
QFont(const QString &family, int pointSize = -1, int weight = -1, bool italic = false);
|
||||||
QFont(const QStringList &families, int pointSize = -1, int weight = -1, bool italic = false);
|
explicit QFont(const QStringList &families, int pointSize = -1, int weight = -1, bool italic = false);
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||||
QFont(const QFont &font, QPaintDevice *pd);
|
QFont(const QFont &font, QPaintDevice *pd);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user