|
|
@ -1112,6 +1112,10 @@ DragDrop.DropArea {
|
|
|
|
checkRestoreZoom.start();
|
|
|
|
checkRestoreZoom.start();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function stopCheckRestoreZoomTimer(){
|
|
|
|
|
|
|
|
checkRestoreZoom.stop();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function setGlobalDirectRender(value) {
|
|
|
|
function setGlobalDirectRender(value) {
|
|
|
|
if (latteApplet && latteApplet.waitingLaunchers.length > 0)
|
|
|
|
if (latteApplet && latteApplet.waitingLaunchers.length > 0)
|
|
|
|
return;
|
|
|
|
return;
|
|
|
@ -1308,11 +1312,10 @@ DragDrop.DropArea {
|
|
|
|
ignoreUnknownSignals : true
|
|
|
|
ignoreUnknownSignals : true
|
|
|
|
|
|
|
|
|
|
|
|
onContainsMouseChanged: {
|
|
|
|
onContainsMouseChanged: {
|
|
|
|
if (dock.visibility.containsMouse) {
|
|
|
|
if (mouseInHoverableArea()) {
|
|
|
|
if (checkRestoreZoom.running)
|
|
|
|
stopCheckRestoreZoomTimer();
|
|
|
|
checkRestoreZoom.stop();
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
checkRestoreZoom.start();
|
|
|
|
startCheckRestoreZoomTimer();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1465,11 +1468,14 @@ DragDrop.DropArea {
|
|
|
|
id: rootMouseArea
|
|
|
|
id: rootMouseArea
|
|
|
|
anchors.fill: parent
|
|
|
|
anchors.fill: parent
|
|
|
|
hoverEnabled: true
|
|
|
|
hoverEnabled: true
|
|
|
|
onEntered: {
|
|
|
|
|
|
|
|
initializeHoveredIndexes();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(!root.editMode)
|
|
|
|
onContainsMouseChanged: {
|
|
|
|
checkRestoreZoom.start();
|
|
|
|
if (mouseInHoverableArea()) {
|
|
|
|
|
|
|
|
stopCheckRestoreZoomTimer();
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
initializeHoveredIndexes();
|
|
|
|
|
|
|
|
startCheckRestoreZoomTimer()
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -1580,9 +1586,6 @@ DragDrop.DropArea {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
if (!mouseInHoverableArea()) {
|
|
|
|
if (!mouseInHoverableArea()) {
|
|
|
|
if (enableDirectRenderTimer.running)
|
|
|
|
|
|
|
|
enableDirectRenderTimer.stop();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setGlobalDirectRender(false);
|
|
|
|
setGlobalDirectRender(false);
|
|
|
|
root.initializeHoveredIndexes();
|
|
|
|
root.initializeHoveredIndexes();
|
|
|
|
root.clearZoom();
|
|
|
|
root.clearZoom();
|
|
|
@ -1594,27 +1597,6 @@ DragDrop.DropArea {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//this timer adds a delay into enabling direct rendering...
|
|
|
|
|
|
|
|
//it gives the time to neighbour tasks to complete their animation
|
|
|
|
|
|
|
|
//during first hovering phase
|
|
|
|
|
|
|
|
Timer {
|
|
|
|
|
|
|
|
id: enableDirectRenderTimer
|
|
|
|
|
|
|
|
interval: 0 //checkRestoreZoom.interval + 20 //4 * root.durationTime * units.shortDuration
|
|
|
|
|
|
|
|
onTriggered: {
|
|
|
|
|
|
|
|
/* if (latteApplet && latteApplet.waitingLaunchers.length > 0)
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (dock.visibility.containsMouse && !rootMouseArea.containsMouse && mouseInCanBeHoveredApplet()){
|
|
|
|
|
|
|
|
setGlobalDirectRender(true);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (root.debugModeTimers) {
|
|
|
|
|
|
|
|
console.log("containment timer: enableDirectRenderTimer called...");
|
|
|
|
|
|
|
|
}*/
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//this is a delayer to update mask area, it is used in cases
|
|
|
|
//this is a delayer to update mask area, it is used in cases
|
|
|
|
//that animations can not catch up with animations signals
|
|
|
|
//that animations can not catch up with animations signals
|
|
|
|
//e.g. the automaicIconSize case
|
|
|
|
//e.g. the automaicIconSize case
|
|
|
|