summaryrefslogtreecommitdiffstats
path: root/src/core/core-components/qcameralens.h
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2014-09-26 10:29:56 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2014-09-26 15:11:52 +0200
commit5019fae2335e321f9e606f5a0b2c692821c4d589 (patch)
tree92ac0dc1306892e3afb68be0c91fc68ece03298a /src/core/core-components/qcameralens.h
parent6d9febedb5b734541c037521c39f705c0fdbbc95 (diff)
Fix QCameraLens not updating the projection matrix when using setters
Refactor the code to always trigger signals. Expose the projection matrix to QML with its own signals. Task-number: QTBUG-41541 Change-Id: I63182dc076e1700a5e2da11b92b70ed18e529ec6 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/core/core-components/qcameralens.h')
-rw-r--r--src/core/core-components/qcameralens.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/core-components/qcameralens.h b/src/core/core-components/qcameralens.h
index 292d445c3..ef1259b26 100644
--- a/src/core/core-components/qcameralens.h
+++ b/src/core/core-components/qcameralens.h
@@ -69,6 +69,7 @@ class QT3DCORESHARED_EXPORT QCameraLens : public QComponent
Q_PROPERTY(float right READ right WRITE setRight NOTIFY rightChanged)
Q_PROPERTY(float bottom READ bottom WRITE setBottom NOTIFY bottomChanged)
Q_PROPERTY(float top READ top WRITE setTop NOTIFY topChanged)
+ Q_PROPERTY(QMatrix4x4 projectionMatrix READ projectionMatrix NOTIFY projectionMatrixChanged)
public:
explicit QCameraLens(QNode *parent = 0);
@@ -127,6 +128,7 @@ Q_SIGNALS:
void rightChanged();
void bottomChanged();
void topChanged();
+ void projectionMatrixChanged();
protected:
Q_DECLARE_PRIVATE(QCameraLens)