summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuslan Nigmatullin <euroelessar@yandex.ru>2015-02-03 15:27:12 -0800
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-02-05 13:35:47 +0000
commitacf225d671976acf1429883d21d058fe66bec2f8 (patch)
tree582e9dd5932b4250f934004c67437037dbc52dac
parentdf6dcbede74f8d5da592625015894f967f3d366c (diff)
downloadqtquickcontrols-acf225d671976acf1429883d21d058fe66bec2f8.tar.gz
TableView: Fixed rowDelegate's "model" property
[ChangeLog][TableView] "model" property exposed to rowDelegate is now consistent with ListView behavior. Task-number: QTBUG-44246 Change-Id: I3603a967cded28d6398c95f165d78ce542a0cdf2 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
-rw-r--r--src/controls/TableView.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/controls/TableView.qml b/src/controls/TableView.qml
index 752f47af..ebf873a3 100644
--- a/src/controls/TableView.qml
+++ b/src/controls/TableView.qml
@@ -783,7 +783,7 @@ ScrollView {
readonly property bool hasActiveFocus: false
readonly property bool pressed: false
}
- readonly property var model: listView.model
+ readonly property var model: null
readonly property var modelData: null
}
}
@@ -947,7 +947,7 @@ ScrollView {
readonly property bool hasActiveFocus: rowitem.activeFocus
readonly property bool pressed: rowitem.rowIndex === mousearea.pressedRow
}
- readonly property var model: listView.model
+ readonly property var model: rowitem.itemModel
readonly property var modelData: rowitem.itemModelData
}
Row {