summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSergio Martins <sergio.martins@kdab.com>2015-02-17 22:00:55 +0000
committerPaul Lemire <paul.lemire@kdab.com>2015-02-18 07:03:24 +0000
commita6c4fd60948210779f5f2efac962b03ae5b8d69b (patch)
tree194c8a8eed3cf5d004e804489c0ded4b9a7d0c84 /src
parent13075b0888ab5c104010f7ff142fda917aa7c310 (diff)
Mark it const
Change-Id: Ia2620f1d15400ab4490357f322050846d0deb705 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src')
-rw-r--r--src/core/core-components/qcamera.cpp2
-rw-r--r--src/core/core-components/qcamera.h2
-rw-r--r--src/input/q3dkeyevent.h2
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); }