From 2f0c565c1ae1f42bd4fb18d4cb5df081bb751eb7 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Sun, 12 Mar 2017 01:29:54 +0200 Subject: [PATCH] fix #250,workaround hovering issue for applets --algorithm that is searching for an IconItem inside at the applet's code for 2 levels depth. If it is found the this IconItem is used to be activated and deactivated on entering and exiting the applet. --- containment/contents/ui/AppletItem.qml | 53 +++++++++++++++++++------- 1 file changed, 39 insertions(+), 14 deletions(-) diff --git a/containment/contents/ui/AppletItem.qml b/containment/contents/ui/AppletItem.qml index eab38cbe3..a4731fe22 100644 --- a/containment/contents/ui/AppletItem.qml +++ b/containment/contents/ui/AppletItem.qml @@ -85,6 +85,7 @@ Item { property Item appletWrapper: applet && ((applet.pluginName === root.plasmoidName) || (applet.pluginName === "org.kde.plasma.systemtray")) ? wrapper : wrapperContainer + property Item appletIconItem; //first applet's IconItem, to be activated onExit signal property alias containsMouse: appletMouseArea.containsMouse property alias pressed: appletMouseArea.pressed @@ -178,12 +179,42 @@ Item { } } + function reconsiderAppletItem(){ + if (appletIconItem) + return; + + //! searching to find for that applet the first IconItem + //! which is going to be used in order to deactivate its active + //! from our MouseArea + for(var i=0; i