aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/qml/qml/qqml.cpp13
-rw-r--r--src/qml/qml/qqmlprivate.h11
2 files changed, 14 insertions, 10 deletions
diff --git a/src/qml/qml/qqml.cpp b/src/qml/qml/qqml.cpp
index 3eebbb6df7..db04e7c6d8 100644
--- a/src/qml/qml/qqml.cpp
+++ b/src/qml/qml/qqml.cpp
@@ -712,6 +712,19 @@ void QQmlPrivate::qmlunregister(RegistrationType type, quintptr data)
}
}
+QList<QTypeRevision> QQmlPrivate::revisionClassInfos(const QMetaObject *metaObject,
+ const char *key)
+{
+ QList<QTypeRevision> revisions;
+ for (int index = indexOfOwnClassInfo(metaObject, key); index != -1;
+ index = indexOfOwnClassInfo(metaObject, key, index - 1)) {
+ revisions.push_back(QTypeRevision::fromEncodedVersion(
+ QByteArray(metaObject->classInfo(index).value()).toInt()));
+ }
+ return revisions;
+}
+
+
namespace QQmlPrivate {
template<>
void qmlRegisterTypeAndRevisions<QQmlTypeNotAvailable, void>(
diff --git a/src/qml/qml/qqmlprivate.h b/src/qml/qml/qqmlprivate.h
index 9b6a3488e0..ee88d75722 100644
--- a/src/qml/qml/qqmlprivate.h
+++ b/src/qml/qml/qqmlprivate.h
@@ -799,16 +799,7 @@ namespace QQmlPrivate
QByteArray(metaObject->classInfo(index).value()).toInt());
}
- inline QList<QTypeRevision> revisionClassInfos(const QMetaObject *metaObject, const char *key)
- {
- QList<QTypeRevision> revisions;
- for (int index = indexOfOwnClassInfo(metaObject, key); index != -1;
- index = indexOfOwnClassInfo(metaObject, key, index - 1)) {
- revisions.push_back(QTypeRevision::fromEncodedVersion(
- QByteArray(metaObject->classInfo(index).value()).toInt()));
- }
- return revisions;
- }
+ Q_QML_EXPORT QList<QTypeRevision> revisionClassInfos(const QMetaObject *metaObject, const char *key);
inline bool boolClassInfo(const QMetaObject *metaObject, const char *key,
bool defaultValue = false)