QLine/F: mark as primitive type

QPoint/F are, then so are QLine/F, being a pair of points.

Found by static_assert()ing !isComplex in QDataBuffer.

Pick-to: 6.4
Change-Id: I358a38d79820c9262a86018253002bc991c5a6e4
Reviewed-by: Lars Knoll <lars.knoll@gmail.com>
This commit is contained in:
Marc Mutz 2022-07-07 19:12:16 +02:00
parent 0a1fe50d0b
commit 6b6b88774b

View File

@ -56,7 +56,7 @@ public:
private:
QPoint pt1, pt2;
};
Q_DECLARE_TYPEINFO(QLine, Q_RELOCATABLE_TYPE);
Q_DECLARE_TYPEINFO(QLine, Q_PRIMITIVE_TYPE);
/*******************************************************************************
* class QLine inline members
@ -241,7 +241,7 @@ public:
private:
QPointF pt1, pt2;
};
Q_DECLARE_TYPEINFO(QLineF, Q_RELOCATABLE_TYPE);
Q_DECLARE_TYPEINFO(QLineF, Q_PRIMITIVE_TYPE);
/*******************************************************************************
* class QLineF inline members