update containment spacer to multiple internal

pull/2/head
Michail Vourlakos 7 years ago
parent 0e2f4debb0
commit 9d8c99768f

@ -54,13 +54,28 @@ Item{
Connections{ Connections{
target: root target: root
onSeparatorsUpdated: { onSeparatorsUpdated: updateNeighbour();
hiddenSpacer.neighbourSeparator = hiddenSpacer.rightSpacer ?
parabolicManager.isSeparator(index+1) : parabolicManager.isSeparator(index-1);
} }
Connections{
target: root.latteApplet ? root.latteApplet : null
onSeparatorsUpdated: updateNeighbour();
} }
Rectangle{ function updateNeighbour() {
var gAppN = parabolicManager.availableHigherId(index+1);
var lAppN = parabolicManager.availableLowerId(index-1);
var latteNeighbour = root.latteApplet && ((gAppN === root.latteAppletPos) || (lAppN === root.latteAppletPos ));
hiddenSpacer.neighbourSeparator = hiddenSpacer.rightSpacer ?
parabolicManager.isSeparator(index+1)
|| (latteNeighbour && gAppN===root.latteAppletPos && root.latteApplet.parabolicManager.taskIsSeparator(0)) :
parabolicManager.isSeparator(index-1)
|| (latteNeighbour && lAppN===root.latteAppletPos && root.latteApplet.parabolicManager.taskIsSeparator(root.tasksCount-1)) ;
}
/* Rectangle{
width: !root.isVertical ? parent.width : 1 width: !root.isVertical ? parent.width : 1
height: !root.isVertical ? 1 : parent.height height: !root.isVertical ? 1 : parent.height
x: root.isVertical ? parent.width /2 : 0 x: root.isVertical ? parent.width /2 : 0
@ -69,5 +84,5 @@ Item{
border.width: 1 border.width: 1
border.color: "red" border.color: "red"
color: "transparent" color: "transparent"
} }*/
} }

@ -112,7 +112,7 @@ Item{
NumberAnimation { duration: root.directRenderAnimationTime } NumberAnimation { duration: root.directRenderAnimationTime }
} }
Rectangle{ /*Rectangle{
width: !root.vertical ? parent.width : 1 width: !root.vertical ? parent.width : 1
height: !root.vertical ? 1 : parent.height height: !root.vertical ? 1 : parent.height
x: root.vertical ? parent.width /2 : 0 x: root.vertical ? parent.width /2 : 0
@ -120,5 +120,5 @@ Item{
border.width: 1 border.width: 1
border.color: "red" border.color: "red"
color: "transparent" color: "transparent"
} }*/
} }

Loading…
Cancel
Save