diff options
author | Jens Bache-Wiig <jens.bache-wiig@digia.com> | 2013-05-27 17:54:54 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-05-27 19:17:37 +0200 |
commit | bb64aef56bd43891bd6f91aee25bdfe6633c3a98 (patch) | |
tree | 11cbf366e2aebb984e45003162a7eeccf87f0f03 /tests/auto/controls/data/tableview | |
parent | 5b36fa87bca007c0fac50b5b99f424e2fed59fab (diff) | |
download | qtquickcontrols-bb64aef56bd43891bd6f91aee25bdfe6633c3a98.tar.gz |
Refactor TableView styling API
We don't want to directly expose the item properties in
the namespace of the loader. Instead we standardize on
styleData as a property container.
Change-Id: Ib451e06ab393ba4945c96076d71dd3f96489e0c7
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'tests/auto/controls/data/tableview')
-rw-r--r-- | tests/auto/controls/data/tableview/table_delegate.qml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/controls/data/tableview/table_delegate.qml b/tests/auto/controls/data/tableview/table_delegate.qml index a3ab621d..82b08ba5 100644 --- a/tests/auto/controls/data/tableview/table_delegate.qml +++ b/tests/auto/controls/data/tableview/table_delegate.qml @@ -56,14 +56,14 @@ TableView { } headerDelegate: Text { height: 40 - text: itemValue + text: styleData.value } itemDelegate: Text { width: parent.width anchors.left: parent.left anchors.verticalCenter: parent.verticalCenter - text: itemValue !== undefined ? itemValue : "" - color: itemTextColor + text: styleData.value !== undefined ? styleData.value : "" + color: styleData.textColor MouseArea { anchors.fill: parent onClicked: table.test = 1 |