aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/qml/qml/qqmlpropertycache.cpp4
-rw-r--r--src/qml/qml/qqmlpropertycache_p.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/qml/qml/qqmlpropertycache.cpp b/src/qml/qml/qqmlpropertycache.cpp
index a0af0e94ef..6e9f6e0465 100644
--- a/src/qml/qml/qqmlpropertycache.cpp
+++ b/src/qml/qml/qqmlpropertycache.cpp
@@ -1007,7 +1007,7 @@ QQmlPropertyData *QQmlPropertyCache::findProperty(StringCache::ConstIterator it,
return 0;
}
-QString QQmlPropertyData::name(QObject *object)
+QString QQmlPropertyData::name(QObject *object) const
{
if (!object)
return QString();
@@ -1015,7 +1015,7 @@ QString QQmlPropertyData::name(QObject *object)
return name(object->metaObject());
}
-QString QQmlPropertyData::name(const QMetaObject *metaObject)
+QString QQmlPropertyData::name(const QMetaObject *metaObject) const
{
if (!metaObject || coreIndex == -1)
return QString();
diff --git a/src/qml/qml/qqmlpropertycache_p.h b/src/qml/qml/qqmlpropertycache_p.h
index fe7f204e87..a314d22f8b 100644
--- a/src/qml/qml/qqmlpropertycache_p.h
+++ b/src/qml/qml/qqmlpropertycache_p.h
@@ -228,8 +228,8 @@ public:
static Flags flagsForProperty(const QMetaProperty &, QQmlEngine *engine = 0);
void load(const QMetaProperty &, QQmlEngine *engine = 0);
void load(const QMetaMethod &);
- QString name(QObject *);
- QString name(const QMetaObject *);
+ QString name(QObject *) const;
+ QString name(const QMetaObject *) const;
void markAsOverrideOf(QQmlPropertyData *predecessor);