blob: 7bf8bfb5a2009ff21dfc8150d06c1289803be47e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import QtQml 2.0
import Test 1.0
ItemModelsTest {
property bool isValid: modelIndex.valid
property int row: modelIndex.row
property int column: modelIndex.column
property var parent: modelIndex.parent
property var model: modelIndex.model
property var internalId: modelIndex.internalId
property var displayData: modelIndex.data(Qt.DisplayRole)
onSignalWithModelIndex: {
isValid = index.valid
row = index.row
column = index.column
parent = index.parent
model = index.model
internalId = index.internalId
displayData = index.data(Qt.DisplayRole)
}
}
|