diff options
| author | Ulf Hermann <ulf.hermann@qt.io> | 2020-03-24 19:02:47 +0100 |
|---|---|---|
| committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-03-25 10:11:03 +0100 |
| commit | d9eeab6e2c699761115d9acbca292c16762eb8f3 (patch) | |
| tree | 8eb633a58dab1f69c50addc51ee05026fd80b644 | |
| parent | 944edcf817f568669c318eb576272dff015f58f3 (diff) | |
Make QQmlType::inlineComponentObjectId() const
It does not modify anything.
Change-Id: I88630ba60c6123fc6dbc78d7e74225c8d3d01345
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
| -rw-r--r-- | src/qml/qml/qqmltype.cpp | 2 | ||||
| -rw-r--r-- | src/qml/qml/qqmltype_p.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/qml/qqmltype.cpp b/src/qml/qml/qqmltype.cpp index 586b078248..b02df4a3e4 100644 --- a/src/qml/qml/qqmltype.cpp +++ b/src/qml/qml/qqmltype.cpp @@ -881,7 +881,7 @@ int QQmlType::scopedEnumValue(QQmlEnginePrivate *engine, const QStringRef &scope return -1; } -int QQmlType::inlineComponentObjectId() +int QQmlType::inlineComponentObjectId() const { if (!isInlineComponentType()) return -1; diff --git a/src/qml/qml/qqmltype_p.h b/src/qml/qml/qqmltype_p.h index 38f87b0092..7f224b3f60 100644 --- a/src/qml/qml/qqmltype_p.h +++ b/src/qml/qml/qqmltype_p.h @@ -170,7 +170,7 @@ public: int scopedEnumValue(QQmlEnginePrivate *engine, int index, const QString &, bool *ok) const; int scopedEnumValue(QQmlEnginePrivate *engine, const QByteArray &, const QByteArray &, bool *ok) const; int scopedEnumValue(QQmlEnginePrivate *engine, const QStringRef &, const QStringRef &, bool *ok) const; - int inlineComponentObjectId(); + int inlineComponentObjectId() const; void setInlineComponentObjectId(int id) const; // TODO: const setters are BAD const QQmlTypePrivate *priv() const { return d.data(); } |
