|
|
@ -90,6 +90,12 @@ Item {
|
|
|
|
console.log(computeHeight);
|
|
|
|
console.log(computeHeight);
|
|
|
|
}*/
|
|
|
|
}*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onIndexChanged: {
|
|
|
|
|
|
|
|
if (container.nowDock) {
|
|
|
|
|
|
|
|
root.latteAppletPos = index;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// BEGIN functions
|
|
|
|
/// BEGIN functions
|
|
|
|
function checkIndex(){
|
|
|
|
function checkIndex(){
|
|
|
|
index = -1;
|
|
|
|
index = -1;
|
|
|
@ -174,6 +180,7 @@ Item {
|
|
|
|
if(container.nowDock){
|
|
|
|
if(container.nowDock){
|
|
|
|
root.nowDock = container.nowDock;
|
|
|
|
root.nowDock = container.nowDock;
|
|
|
|
root.nowDockContainer = container;
|
|
|
|
root.nowDockContainer = container;
|
|
|
|
|
|
|
|
root.latteAppletPos = index;
|
|
|
|
nowDock.nowDockPanel = root;
|
|
|
|
nowDock.nowDockPanel = root;
|
|
|
|
nowDock.forceHidePanel = true;
|
|
|
|
nowDock.forceHidePanel = true;
|
|
|
|
nowDock.updateScale.connect(interceptNowDockUpdateScale);
|
|
|
|
nowDock.updateScale.connect(interceptNowDockUpdateScale);
|
|
|
@ -655,6 +662,14 @@ Item {
|
|
|
|
// currentLayout.updateScale(index-2, 1, 0);
|
|
|
|
// currentLayout.updateScale(index-2, 1, 0);
|
|
|
|
// currentLayout.updateScale(index+2, 1, 0);
|
|
|
|
// currentLayout.updateScale(index+2, 1, 0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (root.nowDock) {
|
|
|
|
|
|
|
|
if ((index-1) > root.latteAppletPos ){
|
|
|
|
|
|
|
|
root.nowDock.clearZoom();
|
|
|
|
|
|
|
|
} else if((index+1)<root.latteAppletPos) {
|
|
|
|
|
|
|
|
root.nowDock.clearZoom();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//Left hiddenSpacer
|
|
|
|
//Left hiddenSpacer
|
|
|
|
if(container.startEdge){
|
|
|
|
if(container.startEdge){
|
|
|
|
hiddenSpacerLeft.nScale = leftScale - 1;
|
|
|
|
hiddenSpacerLeft.nScale = leftScale - 1;
|
|
|
@ -687,7 +702,7 @@ Item {
|
|
|
|
if(layoutsContainer.hoveredIndex<container.index){
|
|
|
|
if(layoutsContainer.hoveredIndex<container.index){
|
|
|
|
nowDock.updateScale(0, nScale, step);
|
|
|
|
nowDock.updateScale(0, nScale, step);
|
|
|
|
nowDock.updateScale(1, 1, 0);
|
|
|
|
nowDock.updateScale(1, 1, 0);
|
|
|
|
} else if(layoutsContainer.hoveredIndex>=container.index) {
|
|
|
|
} else if(layoutsContainer.hoveredIndex>container.index) {
|
|
|
|
nowDock.updateScale(root.tasksCount-1, nScale, step);
|
|
|
|
nowDock.updateScale(root.tasksCount-1, nScale, step);
|
|
|
|
nowDock.updateScale(root.tasksCount-2, 1, 0);
|
|
|
|
nowDock.updateScale(root.tasksCount-2, 1, 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|