diff options
author | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-04-02 11:38:01 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-05-13 08:13:14 +0000 |
commit | c19ab81d5547079c8dc28824071562d256637621 (patch) | |
tree | 370c6df1df4790d8831bb5b3e3a6f8f534024d5d /src/core | |
parent | 3bef2c0ca1b7e3fee0adfaf2b53fb11d287c3d55 (diff) |
Port from Q_ENUMS to new macro Q_ENUM.
Remove Q_ENUMS in favor of the new Q_ENUM macro which provides
registration as meta enum and a debug stream operator.
Change-Id: I39c61af189daebe2bf0c7474202da9f6110441c5
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/core-components/qcameralens.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/core-components/qcameralens.h b/src/core/core-components/qcameralens.h index 54742ef26..0e871cc6b 100644 --- a/src/core/core-components/qcameralens.h +++ b/src/core/core-components/qcameralens.h @@ -53,8 +53,6 @@ class QCameraLensPrivate; class QT3DCORESHARED_EXPORT QCameraLens : public QComponent { Q_OBJECT - - Q_ENUMS( ProjectionType ) Q_PROPERTY(ProjectionType projectionType READ projectionType WRITE setProjectionType NOTIFY projectionTypeChanged) Q_PROPERTY(float nearPlane READ nearPlane WRITE setNearPlane NOTIFY nearPlaneChanged) Q_PROPERTY(float farPlane READ farPlane WRITE setFarPlane NOTIFY farPlaneChanged) @@ -74,6 +72,7 @@ public: PerspectiveProjection, FrustumProjection }; + Q_ENUM(ProjectionType) void setProjectionType(ProjectionType projectionType); ProjectionType projectionType() const; |