summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Mutz <[email protected]>2025-06-27 08:34:28 +0200
committerQt Cherry-pick Bot <[email protected]>2025-06-30 04:37:46 +0000
commit1cf2fffee41fdb00deb52e2f330a9fca10e95734 (patch)
treee3eeb348b8771f12b55e031ab0b4a12bca41e277
parent5bc160bc8385f6a2e590ffb964d1d390c1ab4ce6 (diff)
QQuaternion: comment all #endif's
It's easier to comprehend what's going on, because there are quite a few different ones here. Exception: if the #if block contains only very few lines (max four or so, didn't count), then a naked #endif is ok, and arguably easier on the eye, so leave them in that case. Amends the start of the public history. Pick-to: 6.9 6.8 6.5 Change-Id: Ib1b27859344916caa17dc1ff0010b6b10d34bb13 Reviewed-by: Volker Hilsheimer <[email protected]> (cherry picked from commit d9e77680600de1bdcd8009c6a2cfdf82de2085fc) Reviewed-by: Qt Cherry-pick Bot <[email protected]>
-rw-r--r--src/gui/math3d/qquaternion.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/math3d/qquaternion.h b/src/gui/math3d/qquaternion.h
index 7cfbd9b818d..8e4d91da4ea 100644
--- a/src/gui/math3d/qquaternion.h
+++ b/src/gui/math3d/qquaternion.h
@@ -128,7 +128,7 @@ QT_WARNING_POP
QT7_ONLY(Q_GUI_EXPORT) static QQuaternion rotationTo(const QVector3D &from,
const QVector3D &to);
-#endif
+#endif // QT_NO_VECTOR3D
QT7_ONLY(Q_GUI_EXPORT) static QQuaternion slerp(const QQuaternion &q1, const QQuaternion &q2,
float t);
@@ -330,7 +330,7 @@ inline QQuaternion QQuaternion::fromEulerAngles(const QVector3D &eulerAngles)
return QQuaternion::fromEulerAngles(eulerAngles.x(), eulerAngles.y(), eulerAngles.z());
}
-#endif
+#endif // QT_NO_VECTOR3D
constexpr void QQuaternion::setVector(float aX, float aY, float aZ) noexcept
{
@@ -349,7 +349,7 @@ constexpr QVector4D QQuaternion::toVector4D() const noexcept
return QVector4D(xp, yp, zp, wp);
}
-#endif
+#endif // QT_NO_VECTOR4D
#ifndef QT_NO_DEBUG_STREAM
Q_GUI_EXPORT QDebug operator<<(QDebug dbg, const QQuaternion &q);
@@ -360,8 +360,8 @@ Q_GUI_EXPORT QDataStream &operator<<(QDataStream &, const QQuaternion &);
Q_GUI_EXPORT QDataStream &operator>>(QDataStream &, QQuaternion &);
#endif
-#endif
+#endif // QT_NO_QUATERNION
QT_END_NAMESPACE
-#endif
+#endif // QQUATERNION_H