aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports
diff options
context:
space:
mode:
authorAndrei Golubev <andrei.golubev@qt.io>2021-05-28 11:22:12 +0200
committerAndrei Golubev <andrei.golubev@qt.io>2021-06-03 10:30:53 +0200
commit93b5744c2884213225b6e70baaf98e61e8f225a0 (patch)
tree4016d2f9862ab337f5b94c6e888731e9746bf3cb /src/imports
parent06893b68c6b1f70cb7ff255db1fa9d14697403fa (diff)
Pass property index from MOC to QQmlJSMetaProperty
This index corresponds to what QMetaObject::indexOfProperty returns for the same property at run time Change-Id: I3868aa8651f75d774026cb27438cea16bca698d7 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/imports')
-rw-r--r--src/imports/tooling/Property.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/imports/tooling/Property.qml b/src/imports/tooling/Property.qml
index 96cf1a3758..dd5be3661d 100644
--- a/src/imports/tooling/Property.qml
+++ b/src/imports/tooling/Property.qml
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2020 The Qt Company Ltd.
+** Copyright (C) 2021 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the test suite of the Qt Toolkit.
@@ -51,4 +51,5 @@ Member {
property string read
property string write
property string notify
+ property int index: -1
}