diff options
author | Andreas Hartmetz <andreas.hartmetz@kdab.com> | 2012-11-30 16:35:45 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-30 18:46:35 +0100 |
commit | 90f28df50a51743988f8e9b9c95cfb9608239cfd (patch) | |
tree | b666bbb1f3cea32d72d801a102a194fd95ec81b6 /src/qml/qml/qqmlproperty.h | |
parent | f424629374b2d04d80dde4b07f17c1f2e52fe884 (diff) |
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>
Diffstat (limited to 'src/qml/qml/qqmlproperty.h')
-rw-r--r-- | src/qml/qml/qqmlproperty.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/qml/qqmlproperty.h b/src/qml/qml/qqmlproperty.h index d651315d13..2a688a8e93 100644 --- a/src/qml/qml/qqmlproperty.h +++ b/src/qml/qml/qqmlproperty.h @@ -100,9 +100,9 @@ public: QString name() const; QVariant read() const; - static QVariant read(QObject *, const QString &); - static QVariant read(QObject *, const QString &, QQmlContext *); - static QVariant read(QObject *, const QString &, QQmlEngine *); + static QVariant read(const QObject *, const QString &); + static QVariant read(const QObject *, const QString &, QQmlContext *); + static QVariant read(const QObject *, const QString &, QQmlEngine *); bool write(const QVariant &) const; static bool write(QObject *, const QString &, const QVariant &); |