diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/core-components/qcamera.cpp | 2 | ||||
-rw-r--r-- | src/core/core-components/qcamera.h | 2 | ||||
-rw-r--r-- | src/input/q3dkeyevent.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/core/core-components/qcamera.cpp b/src/core/core-components/qcamera.cpp index 81c2f4cce..c96f58db6 100644 --- a/src/core/core-components/qcamera.cpp +++ b/src/core/core-components/qcamera.cpp @@ -351,7 +351,7 @@ float QCamera::top() const return d->m_lens->top(); } -QMatrix4x4 QCamera::projectionMatrix() +QMatrix4x4 QCamera::projectionMatrix() const { Q_D(const QCamera); return d->m_lens->projectionMatrix(); diff --git a/src/core/core-components/qcamera.h b/src/core/core-components/qcamera.h index 6c4913426..edb8598e0 100644 --- a/src/core/core-components/qcamera.h +++ b/src/core/core-components/qcamera.h @@ -134,7 +134,7 @@ public: void setTop(float top); float top() const; - QMatrix4x4 projectionMatrix(); + QMatrix4x4 projectionMatrix() const; void setPosition(const QVector3D &position); QVector3D position() const; diff --git a/src/input/q3dkeyevent.h b/src/input/q3dkeyevent.h index d84519f7e..a3cd00339 100644 --- a/src/input/q3dkeyevent.h +++ b/src/input/q3dkeyevent.h @@ -71,7 +71,7 @@ public: inline bool isAutoRepeat() const { return m_event.isAutoRepeat(); } inline int count() const { return m_event.count(); } inline quint32 nativeScanCode() const { return m_event.nativeScanCode(); } - inline bool isAccepted() { return m_event.isAccepted(); } + inline bool isAccepted() const { return m_event.isAccepted(); } inline void setAccepted(bool accepted) { m_event.setAccepted(accepted); } inline QEvent::Type type() const { return m_event.type(); } Q_INVOKABLE bool matches(QKeySequence::StandardKey key) const { return m_event.matches(key); } |