@@ -21,6 +21,7 @@ import Unity.Indicators 0.1 as Indicators
22import "../Components"
22import "../Components"
23import "../Components/ListItems"
23import "../Components/ListItems"
26 id: indicators
27 id: indicators
@@ -179,6 +180,10 @@ Showable {
179 source: "graphics/VerticalDivider.png"
180 source: "graphics/VerticalDivider.png"
183+ VisibleIndicatorsModel {
182 MenuContent {
187 MenuContent {
183 id: menuContent
188 id: menuContent
184 objectName: "menuContent"
189 objectName: "menuContent"
@@ -220,13 +225,9 @@ Showable {
220 right: parent.right
225 right: parent.right
221 bottom: parent.bottom
226 bottom: parent.bottom
223− height: get_height()
228+ height: Math.max(Math.min(handleImage.height, indicators.height - handleImage.height), 0)
224 clip: height < handleImage.height
229 clip: height < handleImage.height
226− function get_height() {
227− return Math.max(Math.min(handleImage.height, indicators.height - handleImage.height), 0);
230 BorderImage {
231 BorderImage {
231 id: handleImage
232 id: handleImage
232 source: "graphics/handle.sci"
233 source: "graphics/handle.sci"
@@ -246,10 +247,6 @@ Showable {
246 anchors.fill: indicatorRow
247 anchors.fill: indicatorRow
249− Indicators.IndicatorsModel {
253 IndicatorRow {
250 IndicatorRow {
254 id: indicatorRow
251 id: indicatorRow
255 objectName: "indicatorRow"
252 objectName: "indicatorRow"
@@ -262,14 +259,6 @@ Showable {
262 state: indicators.state
259 state: indicators.state
263 unitProgress: indicators.unitProgress
260 unitProgress: indicators.unitProgress
265− onVisibleIndicatorsChanged: {
266− // need to do it here so we can control sequence
267− if (visibleIndicators !== undefined) {
268− menuContent.visibleIndicators = visibleIndicators;
269− menuContent.setCurrentMenuIndex(currentItemIndex);
273 EdgeDragArea {
262 EdgeDragArea {
274 id: rowDragArea
263 id: rowDragArea
275 anchors.fill: indicatorRow
264 anchors.fill: indicatorRow
@@ -315,7 +304,6 @@ Showable {
315 indicators.state = "initial";
304 indicators.state = "initial";
316 initalizeItem = true;
305 initalizeItem = true;
317 indicatorRow.currentItemOffset = 0;
306 indicatorRow.currentItemOffset = 0;
318− menuContent.animateNextMenuChange = false;
@@ -346,7 +334,7 @@ Showable {
346 if (!oldActive) return;
334 if (!oldActive) return;
347 d.enableIndexChangeSignal = false;
335 d.enableIndexChangeSignal = false;
349− menuContent.setCurrentMenuIndex(indicatorRow.currentItemIndex);
337+ menuContent.setCurrentMenuIndex(indicatorRow.currentItemIndex, fullyOpened || partiallyOpened);
351 d.enableIndexChangeSignal = oldActive;
339 d.enableIndexChangeSignal = oldActive;