diff options
author | Joona Petrell <joona.t.petrell@nokia.com> | 2010-07-22 03:23:39 (GMT) |
---|---|---|
committer | Joona Petrell <joona.t.petrell@nokia.com> | 2010-07-22 05:04:04 (GMT) |
commit | 0b83a2161261be525f01359397ab1c8c34827749 (patch) | |
tree | 96854cca2a179d36983b64d004a0673c6ca756c3 /src/declarative/qml | |
parent | 266a64d34d775b2ebcf1bffbf751cfe9437ceafe (diff) | |
download | Qt-0b83a2161261be525f01359397ab1c8c34827749.zip Qt-0b83a2161261be525f01359397ab1c8c34827749.tar.gz Qt-0b83a2161261be525f01359397ab1c8c34827749.tar.bz2 |
Make rootContext and engine pointers in QDeclarativeView API const
Task-number: QTBUG-12322
Reviewed-by: Aaron Kennedy
Diffstat (limited to 'src/declarative/qml')
-rw-r--r-- | src/declarative/qml/qdeclarativeengine.cpp | 4 | ||||
-rw-r--r-- | src/declarative/qml/qdeclarativeengine.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/declarative/qml/qdeclarativeengine.cpp b/src/declarative/qml/qdeclarativeengine.cpp index 9dae64d..e3ebca3 100644 --- a/src/declarative/qml/qdeclarativeengine.cpp +++ b/src/declarative/qml/qdeclarativeengine.cpp @@ -578,9 +578,9 @@ void QDeclarativeEngine::clearComponentCache() component instances should be added to sub-contexts parented to the root context. */ -QDeclarativeContext *QDeclarativeEngine::rootContext() +QDeclarativeContext *QDeclarativeEngine::rootContext() const { - Q_D(QDeclarativeEngine); + Q_D(const QDeclarativeEngine); return d->rootContext; } diff --git a/src/declarative/qml/qdeclarativeengine.h b/src/declarative/qml/qdeclarativeengine.h index 01487f5..d971d80 100644 --- a/src/declarative/qml/qdeclarativeengine.h +++ b/src/declarative/qml/qdeclarativeengine.h @@ -74,7 +74,7 @@ public: QDeclarativeEngine(QObject *p = 0); virtual ~QDeclarativeEngine(); - QDeclarativeContext *rootContext(); + QDeclarativeContext *rootContext() const; void clearComponentCache(); |