fix #176,dont hide tooltip when hovering same task

v0.6
Michail Vourlakos
parent 0cbd6f8470
commit d594330a9e

@ -1036,7 +1036,7 @@ MouseArea{
repeat: false repeat: false
onTriggered: { onTriggered: {
if(mainItemContainer.containsMouse){ if(mainItemContainer.containsMouse && toolTipDelegate.parentTask !== mainItemContainer){
//console.log("Hovered Timer...."); //console.log("Hovered Timer....");
mainItemContainer.preparePreviewWindow(false); mainItemContainer.preparePreviewWindow(false);
windowsPreviewDlg.show(); windowsPreviewDlg.show();

@ -220,14 +220,19 @@ Item {
//it is used to unblock dock hiding //it is used to unblock dock hiding
root.signalDraggingState(false); root.signalDraggingState(false);
} }
//console.log("on hide event called...");
visible = false; visible = false;
//activeItem = null; activeItem = null;
initializePreviewComponent.createObject(windowsPreviewDlg); initializePreviewComponent.createObject(windowsPreviewDlg);
} }
function show(){ function show(){
//console.log("preview show called...");
if (activeItem !== toolTipDelegate.parentTask) {
//used to initialize windows previews buffers //used to initialize windows previews buffers
visible = false; visible = false;
var tasks = icList.contentItem.children; var tasks = icList.contentItem.children;
for(var i=0; i<tasks.length; ++i){ for(var i=0; i<tasks.length; ++i){
@ -244,9 +249,11 @@ Item {
root.signalDraggingState(true); root.signalDraggingState(true);
} }
activeItem = toolTipDelegate.parentTask;
visible = true; visible = true;
} }
} }
}
//A Timer to delay the initialization of the active item in order //A Timer to delay the initialization of the active item in order
//to not break then active item animation //to not break then active item animation

Loading…
Cancel
Save