diff options
author | Ruslan Nigmatullin <euroelessar@yandex.ru> | 2015-02-03 15:27:12 -0800 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-02-05 13:35:47 +0000 |
commit | acf225d671976acf1429883d21d058fe66bec2f8 (patch) | |
tree | 582e9dd5932b4250f934004c67437037dbc52dac | |
parent | df6dcbede74f8d5da592625015894f967f3d366c (diff) | |
download | qtquickcontrols-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.qml | 4 |
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 { |