summaryrefslogtreecommitdiffstats
path: root/src/gui/math3d/qmatrix4x4.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2021-06-30 13:54:19 +0200
committerMarc Mutz <marc.mutz@kdab.com>2021-06-30 23:13:28 +0200
commitbc1808794db670432e5c98c1b94119748c808843 (patch)
tree0f16fca529b58f6f9641d4829357c0cb0ce7a9f3 /src/gui/math3d/qmatrix4x4.h
parent0ed1f8b54e42fc731eae302cdd1b06e955f01be9 (diff)
tst_QMatrixNxN: fix type-punning warning
... by making the test class a friend of the CUT, as we do elsewhere for the same reason. This allows to remove the duplicated enum and struct in favor of using The Real Thing™, which means the test can no longer go out of sync with the CUT anymore. Change-Id: I87dc8bb4a5476ae4fc99e006c4690e96d2f530d2 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/gui/math3d/qmatrix4x4.h')
-rw-r--r--src/gui/math3d/qmatrix4x4.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/math3d/qmatrix4x4.h b/src/gui/math3d/qmatrix4x4.h
index c077581a3e..15c5cabbf2 100644
--- a/src/gui/math3d/qmatrix4x4.h
+++ b/src/gui/math3d/qmatrix4x4.h
@@ -47,6 +47,8 @@
#include <QtGui/qgenericmatrix.h>
#include <QtCore/qrect.h>
+class tst_QMatrixNxN;
+
QT_BEGIN_NAMESPACE
@@ -210,6 +212,8 @@ private:
Flags flagBits;
QMatrix4x4 orthonormalInverse() const;
+
+ friend class ::tst_QMatrixNxN; // for access to flagBits
};
Q_DECLARE_OPERATORS_FOR_FLAGS(QMatrix4x4::Flags)