mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-21 10:50:30 +03:00
improve update of hoveredIndexes
--when the plasmoid is hovered when the applets hoveredIndex should be initialized and when an applet is hovered then the plamoids hoveredIndex should be initialized to -1.
This commit is contained in:
parent
3fe9d2bc4e
commit
452e93c33e
@ -1047,6 +1047,10 @@ DragDrop.DropArea {
|
||||
layoutManager.save();
|
||||
}
|
||||
|
||||
function setHoveredIndex(ind) {
|
||||
layoutsContainer.hoveredIndex = ind;
|
||||
}
|
||||
|
||||
function hideTooltipLabel(debug){
|
||||
titleTooltipDialog.hide(debug);
|
||||
}
|
||||
@ -1385,6 +1389,16 @@ DragDrop.DropArea {
|
||||
}
|
||||
}
|
||||
|
||||
Connections{
|
||||
target: layoutsContainer
|
||||
|
||||
onHoveredIndexChanged: {
|
||||
if (latteApplet && layoutsContainer.hoveredIndex>-1){
|
||||
latteApplet.setHoveredIndex(-1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
////END interfaces
|
||||
|
||||
/////BEGIN: Title Tooltip///////////
|
||||
|
@ -315,6 +315,16 @@ Item {
|
||||
onCurrentLayoutNameChanged: root.publishTasksGeometries();
|
||||
}
|
||||
|
||||
Connections{
|
||||
target: icList
|
||||
|
||||
onHoveredIndexChanged:{
|
||||
if (latteDock && icList.hoveredIndex>-1){
|
||||
latteDock.setHoveredIndex(-1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/////
|
||||
PlasmaCore.ColorScope{
|
||||
@ -1392,6 +1402,9 @@ Item {
|
||||
}
|
||||
}
|
||||
|
||||
function setHoveredIndex(ind) {
|
||||
icList.hoveredIndex = ind;
|
||||
}
|
||||
|
||||
function updatePosition(){
|
||||
var newPosition;
|
||||
|
Loading…
x
Reference in New Issue
Block a user