fix #176,dont hide tooltip when hovering same task

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

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

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

Loading…
Cancel
Save