diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-06-15 09:09:08 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-08-15 10:56:29 +0200 |
commit | 8929c0a3550ae27cb5c9ed276d4c5a85594ba682 (patch) | |
tree | 56998feaa3acec13cc575a7f95b12b28e4407c44 /src/gui/math3d/qvector4d.cpp | |
parent | af263b003be2f2e111ddc398bc8918cc006fcbb3 (diff) |
Remove QVariant(int type, void *data, ...) constructor
It was marked internal anyway. Use the constructor taking a
QMetaType instead.
Change-Id: I15b9cd0911aac063a0f0fe0352fa2c84b7f7c691
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/gui/math3d/qvector4d.cpp')
-rw-r--r-- | src/gui/math3d/qvector4d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/math3d/qvector4d.cpp b/src/gui/math3d/qvector4d.cpp index 43cfb0c61c..c42986d777 100644 --- a/src/gui/math3d/qvector4d.cpp +++ b/src/gui/math3d/qvector4d.cpp @@ -608,7 +608,7 @@ QVector3D QVector4D::toVector3DAffine() const */ QVector4D::operator QVariant() const { - return QVariant(QMetaType::QVector4D, this); + return QVariant::fromValue(*this); } #ifndef QT_NO_DEBUG_STREAM |