diff options
author | Jens Bache-Wiig <jens.bache-wiig@digia.com> | 2013-05-15 11:03:01 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-05-16 07:58:30 +0200 |
commit | b0c0cbbc738397ced160ae3cd2c0989e7b30eb37 (patch) | |
tree | f143450558da19078bb5605cffd932852f20f3d0 /src/controls/TableView.qml | |
parent | bb7ba4d62d3084c5448b9012e4a618c02395b087 (diff) | |
download | qtquickcontrols-b0c0cbbc738397ced160ae3cd2c0989e7b30eb37.tar.gz |
Don't draw anything in TableView unless there is a column
I was really confused because after assigning a model it looked like
the table view was showing the data, while in reality it was
just filling up with alternating row colors. I think it is
better not to draw anything to ensure that people correctly add
a TableViewColumn.
Change-Id: I353b478f4af80410aca3f94439a02ed7ab53f6d6
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Diffstat (limited to 'src/controls/TableView.qml')
-rw-r--r-- | src/controls/TableView.qml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/controls/TableView.qml b/src/controls/TableView.qml index 3f95ec19..e48885ff 100644 --- a/src/controls/TableView.qml +++ b/src/controls/TableView.qml @@ -304,8 +304,9 @@ ScrollView { anchors.topMargin: tableHeader.height anchors.fill: parent currentIndex: -1 - + visible: columns.length > 0 interactive: false + SystemPalette { id: palette colorGroup: enabled ? SystemPalette.Active : SystemPalette.Disabled |