aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlcontext.h
diff options
context:
space:
mode:
authorMathias Hasselmann <mathias.hasselmann@kdab.com>2014-03-12 14:05:22 +0100
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2015-06-05 08:37:37 +0000
commit3d12cf7bac7a06a94a60211e2f40017c3c3a7ba0 (patch)
tree33a47ea6b5dfcd48a83a71a325a48ac03bdc0bb3 /src/qml/qml/qqmlcontext.h
parentceda573e0e0e0181fc180f575616ec5cd277166e (diff)
Document API bug for QQmlContext::nameForObject()
QQmlContext::nameForObject() doesn't need a mutable QObject, therefore the QObject argument should be marked as const. Change-Id: Ib3cfe197cb4a615850771ccc303796a6c205873e Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/qml/qqmlcontext.h')
-rw-r--r--src/qml/qml/qqmlcontext.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlcontext.h b/src/qml/qml/qqmlcontext.h
index c714846147..e69a2f8f69 100644
--- a/src/qml/qml/qqmlcontext.h
+++ b/src/qml/qml/qqmlcontext.h
@@ -72,6 +72,7 @@ public:
void setContextProperty(const QString &, QObject *);
void setContextProperty(const QString &, const QVariant &);
+ // ### Qt 6: no need for a mutable object, this should become a const QObject pointer
QString nameForObject(QObject *) const;
QUrl resolvedUrl(const QUrl &);