QLineF::intersects(): Make the output parameter optional

Change-Id: I1ccd290a81b38db2e86958fa8ce188878484dcc4
Reviewed-by: Konstantin Shegunov <kshegunov@gmail.com>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
bb10
Sze Howe Koh 2020-08-21 22:05:01 +08:00
parent 4f12bae850
commit be44866626
1 changed files with 1 additions and 1 deletions

View File

@ -249,7 +249,7 @@ public:
Q_REQUIRED_RESULT QLineF unitVector() const;
Q_REQUIRED_RESULT constexpr inline QLineF normalVector() const;
IntersectionType intersects(const QLineF &l, QPointF *intersectionPoint) const;
IntersectionType intersects(const QLineF &l, QPointF *intersectionPoint = nullptr) const;
constexpr inline QPointF pointAt(qreal t) const;
inline void translate(const QPointF &p);