Make static QQmlProperty::read() take a const QObject pointer.
authorAndreas Hartmetz <andreas.hartmetz@kdab.com>
Fri, 30 Nov 2012 15:35:45 +0000 (16:35 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 30 Nov 2012 17:46:35 +0000 (18:46 +0100)
commit90f28df50a51743988f8e9b9c95cfb9608239cfd
treeb666bbb1f3cea32d72d801a102a194fd95ec81b6
parentf424629374b2d04d80dde4b07f17c1f2e52fe884
Make static QQmlProperty::read() take a const QObject pointer.

It uses the QObject in a non-const, but still logically const, way
internally. Given that the compiler disregards const for code generation
and that the QObject won't change in any way observable from the
outside, that should not be a problem.

Task-number: QTBUG-28258
Change-Id: I1a852a2597eb2ff05b421e8024e70e7ac5299627
Reviewed-by: Alan Alpert <aalpert@rim.com>
src/qml/qml/qqmlproperty.cpp
src/qml/qml/qqmlproperty.h