From 09a74592234c84b3e428b452d844eaa1f6451040 Mon Sep 17 00:00:00 2001 From: Richard Moe Gustavsen Date: Wed, 18 Sep 2013 10:22:39 +0200 Subject: SplitView: fix hidden item after fillWidth item bug Some of the calculations in SplitView assumed that if item with index i was hidden, then so was handle at index i as well. This is not correct. The reason is that a the handle at i belongs to either item i or item i+1, depending on where the fillWidth item is. And this caused a bug when hiding the item to the right of the fillWidth item. Conflicts: tests/auto/controls/data/tst_splitview.qml Change-Id: I59967813f264a856181c57e32c4820d09d7eb363 Reviewed-by: Jens Bache-Wiig --- src/controls/SplitView.qml | 23 +++++++++++---------- tests/auto/controls/data/tst_splitview.qml | 33 ++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 11 deletions(-) diff --git a/src/controls/SplitView.qml b/src/controls/SplitView.qml index 1cc8199f..57f6633f 100644 --- a/src/controls/SplitView.qml +++ b/src/controls/SplitView.qml @@ -293,17 +293,18 @@ Item { // calculate their acummulated width. var w = 0 for (var i=firstIndex; i