aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlpropertycache.cpp
diff options
context:
space:
mode:
authorCaroline Chao <caroline.chao@digia.com>2013-09-04 15:13:53 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-10 07:18:09 +0200
commit7eda052f257740d5fa798aee90d76196feba4efd (patch)
treeab2f4bd389436bfc0d6c3722468a9c8d65e5fd8b /src/qml/qml/qqmlpropertycache.cpp
parent48ba62234c48cbb724784363d65a510c206e31bd (diff)
Change access mode for functions declared in qml
Give the method a QMetaMethod::Public access instead of a QMetaMethod::Protected one. This is valid and is also needed when using the qmlplugindump tool with composite types. Change-Id: Ie1660716d8767cdc949f04a2f324799f2d2fe6c5 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/qml/qml/qqmlpropertycache.cpp')
-rw-r--r--src/qml/qml/qqmlpropertycache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlpropertycache.cpp b/src/qml/qml/qqmlpropertycache.cpp
index d10af391f5..6d44b61aee 100644
--- a/src/qml/qml/qqmlpropertycache.cpp
+++ b/src/qml/qml/qqmlpropertycache.cpp
@@ -1553,7 +1553,7 @@ void QQmlPropertyCache::toMetaObjectBuilder(QMetaObjectBuilder &builder)
} else {
method = builder.addSlot(signature);
}
- method.setAccess(QMetaMethod::Protected);
+ method.setAccess(QMetaMethod::Public);
if (arguments && arguments->names)
method.setParameterNames(*arguments->names);