fix #148,improve tooltips focus

--when mouse leaves the task the relevant
task the window previews becomes hidden
v0.6
Michail Vourlakos 8 years ago
parent 7f6336616c
commit 2778dd2eb6

@ -143,6 +143,11 @@ Item {
hoveredItem = null;
activationTimer.stop();
}
if (hoveredItem && windowsPreviewDlg.visible && toolTipDelegate.currentItem !== hoveredItem.itemIndex ) {
windowsPreviewDlg.hide();
toolTipDelegate.currentItem=-1;
}
}
onDragLeave: {
@ -182,6 +187,11 @@ Item {
// groupDialog.visualParent = parent.hoveredItem;
// groupDialog.visible = true;
} else if (parent.hoveredItem.m.IsLauncher !== true) {
if(windowsPreviewDlg.visible && toolTipDelegate.currentItem !==parent.hoveredItem.itemIndex ) {
windowsPreviewDlg.hide();
toolTipDelegate.currentItem=-1;
}
tasksModel.requestActivate(parent.hoveredItem.modelIndex());
}
}

@ -501,6 +501,11 @@ MouseArea{
///////////////// Mouse Area Events ///////////////////
onEntered: {
if ((icList.hoveredIndex !== itemIndex) && isLauncher && windowsPreviewDlg.visible) {
windowsPreviewDlg.hide();
toolTipDelegate.currentItem = -1;
}
checkListHovered.stop();
if((!inAnimation)&&(root.dragSource == null)&&(!root.taskInAnimation)){

Loading…
Cancel
Save