fix #176,dont hide tooltip when hovering same task

v0.6
Michail Vourlakos 8 years ago
parent 0cbd6f8470
commit d594330a9e

@ -1036,8 +1036,8 @@ 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();
//windowsPreviewDlg.visible = true; //windowsPreviewDlg.visible = true;

@ -220,31 +220,38 @@ 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(){
//used to initialize windows previews buffers //console.log("preview show called...");
visible = false; if (activeItem !== toolTipDelegate.parentTask) {
var tasks = icList.contentItem.children; //used to initialize windows previews buffers
visible = false;
var tasks = icList.contentItem.children;
for(var i=0; i<tasks.length; ++i){
var task = tasks[i];
for(var i=0; i<tasks.length; ++i){ if(task && task.isActive){
var task = tasks[i]; activeItem = task;
break;
}
}
if(task && task.isActive){ if (latteDock) {
activeItem = task; //it is used to block dock hiding
break; root.signalDraggingState(true);
} }
}
if (latteDock) { activeItem = toolTipDelegate.parentTask;
//it is used to block dock hiding visible = true;
root.signalDraggingState(true);
} }
visible = true;
} }
} }

Loading…
Cancel
Save