From d66fb0003ed5d2169392364e15b7aca1c95c2856 Mon Sep 17 00:00:00 2001 From: Richard Moe Gustavsen <richard.gustavsen@nokia.com> Date: Thu, 26 May 2011 12:58:07 +0200 Subject: [PATCH] SplitterRow: remove obsolete function --- components/custom/SplitterRow.qml | 20 -------------------- examples/SplitterGallery.qml | 2 +- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/components/custom/SplitterRow.qml b/components/custom/SplitterRow.qml index 8990a0d95..b4d9c07a3 100644 --- a/components/custom/SplitterRow.qml +++ b/components/custom/SplitterRow.qml @@ -158,26 +158,6 @@ Item { return w } - function updateExpandingIndex(newIndex) { - // Only one item can be expanding, so clear the rest: - for (var i=0; i<items.length; ++i) { - var item = items[i] - if (item.expanding && item.expanding === true) { - if (d.expandingIndex === -1) { - // First expanding found. Use it, and clear - // all other - d.expandingIndex = i - } else { - item.expanding = false - } - } - } - d.expandingIndex = (newIndex === -1) ? (root.items.length-1) : newIndex - item = root.items[d.expandingIndex] - if (item.expanding != undefined && item.expanding !== true) - item.expanding = true - } - function updateLayout() { if (items.length === 0) diff --git a/examples/SplitterGallery.qml b/examples/SplitterGallery.qml index fa6f90cf1..966ef6876 100644 --- a/examples/SplitterGallery.qml +++ b/examples/SplitterGallery.qml @@ -11,7 +11,7 @@ Rectangle { anchors.fill: parent Rectangle { - property bool expanding: true + property bool expanding: false property real minimumWidth: 100 color: "gray" width: 200 -- GitLab