diff options
author | Mike Krus <mike.krus@kdab.com> | 2016-03-13 22:56:14 +0000 |
---|---|---|
committer | Mike Krus <mike.krus@kdab.com> | 2016-03-17 21:21:27 +0000 |
commit | 7aa715798b7771586e1109ebd61eb492c8a8f613 (patch) | |
tree | 425da0e5f59da724a1b20b82bbedcbbe71de456a /src/render/frontend/qcamera.h | |
parent | dbc001f9b482ad64f60ae7e6ba1642de3831bc73 (diff) |
QCamera: add Q_INVOKABLE to rotation methods
Task-number: QTBUG-51488
Change-Id: I8bcde8216d7fd00b43e8a7d110b04b3cb1fa13f3
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render/frontend/qcamera.h')
-rw-r--r-- | src/render/frontend/qcamera.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/render/frontend/qcamera.h b/src/render/frontend/qcamera.h index 692aae33f..dc4fa7dc6 100644 --- a/src/render/frontend/qcamera.h +++ b/src/render/frontend/qcamera.h @@ -92,10 +92,10 @@ public: QCameraLens *lens() const; Qt3DCore::QTransform *transform() const; - QQuaternion tiltRotation(float angle) const; - QQuaternion panRotation(float angle) const; - QQuaternion rollRotation(float angle) const; - QQuaternion rotation(float angle, const QVector3D &axis) const; + Q_INVOKABLE QQuaternion tiltRotation(float angle) const; + Q_INVOKABLE QQuaternion panRotation(float angle) const; + Q_INVOKABLE QQuaternion rollRotation(float angle) const; + Q_INVOKABLE QQuaternion rotation(float angle, const QVector3D &axis) const; // Translate relative to camera orientation axes Q_INVOKABLE void translate(const QVector3D& vLocal, CameraTranslationOption option = TranslateViewCenter); |