Fix crash with TableView on android and show alternating rows when empty
authorJens Bache-Wiig <jens.bache-wiig@digia.com>
Mon, 14 Oct 2013 14:19:09 +0000 (16:19 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 15 Oct 2013 08:16:45 +0000 (10:16 +0200)
commit2bd4c2f4dfe84bd30d96dac65d6d06d9df5a4558
tree92806a791e9e3355f00adec2f091e47142445253
parent288f9a9899fa39b5178d7df9e207c6b1af070e16
Fix crash with TableView on android and show alternating rows when empty

We were dividing by 0 when there were no visible rows on android.
This fixes the issue and ensures there are alternating rows also
when the view is empty.

Change-Id: I1ed84235418d50ed476a7424285c52446a355095
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
src/controls/TableView.qml