improve tooltips identifier and checkCanBeHovered

pull/6/head
Michail Vourlakos 6 years ago
parent 50ddf87d4d
commit 583b79314c

@ -116,7 +116,10 @@ Item {
||((index === layoutsContainer.endLayout.beginIndex+layoutsContainer.endLayout.count-1)&&(layoutsContainer.endLayout.count>1)))
readonly property bool acceptMouseEvents: applet && !isLattePlasmoid && !originalAppletBehavior && !appletItem.isSeparator && !communicator.parabolicEffectLocked
readonly property bool originalAppletBehavior: root.zoomFactor === 1 || (root.zoomFactor>1 && canBeHovered && lockZoom)
readonly property bool originalAppletBehavior: root.zoomFactor === 1
|| (root.zoomFactor>1 && !canBeHovered)
|| (root.zoomFactor>1 && canBeHovered && lockZoom)
readonly property bool isSquare: communicator.overlayLatteIconIsActive
property int animationTime: appliedDurationTime * (1.2 *units.shortDuration)
@ -321,12 +324,12 @@ Item {
var maxSize = root.iconSize + root.thickMargins;
var maxForMinimumSize = root.iconSize + root.thickMargins;
if ( (((applet && root.isHorizontal && (applet.width > maxSize || applet.Layout.minimumWidth > maxForMinimumSize))
|| (applet && root.isVertical && (applet.height > maxSize || applet.Layout.minimumHeight > maxForMinimumSize)))
&& !appletItem.isSpacer
&& !communicator.canShowOverlaiedLatteIcon)
|| isSystray
|| appletItem.needsFillSpace) {
if ( isSystray
|| appletItem.needsFillSpace
|| (((applet && root.isHorizontal && (applet.width > maxSize || applet.Layout.minimumWidth > maxForMinimumSize))
|| (applet && root.isVertical && (applet.height > maxSize || applet.Layout.minimumHeight > maxForMinimumSize)))
&& !appletItem.isSpacer
&& !communicator.canShowOverlaiedLatteIcon) ) {
appletItem.canBeHovered = false;
} else {
appletItem.canBeHovered = true;
@ -410,6 +413,10 @@ Item {
}
onIsSystrayChanged: {
checkCanBeHovered();
}
onLatteAppletChanged: {
if(appletItem.latteApplet){
root.latteApplet = appletItem.latteApplet;
@ -608,7 +615,7 @@ Item {
}*/
/* DEPRECATED in favor of VIEW::MouseSignalsTracking
/* DEPRECATED in favor of VIEW::MouseSignalsTracking
MouseArea{
id: appletMouseAreaBottom
anchors.fill: parent

Loading…
Cancel
Save