mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-27 06:03:51 +03:00
reduce ThinTooltip Ability hiding calls
This commit is contained in:
parent
7af60c802d
commit
d46864e0ad
@ -62,17 +62,14 @@ AbilityDefinition.ThinTooltip {
|
||||
}
|
||||
|
||||
function show(visualParent, text) {
|
||||
if (!isEnabled) {
|
||||
if (!isEnabled || showIsBlocked) {
|
||||
_hideTimer.stop();
|
||||
_showTimer.stop();
|
||||
_tooltipDialog.visible = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if (!showIsBlocked) {
|
||||
_hideTimer.stop();
|
||||
}
|
||||
|
||||
_hideTimer.stop();
|
||||
_thinTooltip.currentVisualParent = visualParent;
|
||||
_tooltipDialog.visualParent = visualParent;
|
||||
|
||||
|
@ -46,6 +46,10 @@ Item {
|
||||
onEntered: {
|
||||
abilityItem.abilities.parabolic.setCurrentParabolicItem(_parabolicArea);
|
||||
|
||||
if (isThinTooltipEnabled) {
|
||||
abilityItem.abilities.thinTooltip.show(abilityItem.tooltipVisualParent, abilityItem.thinTooltipText);
|
||||
}
|
||||
|
||||
if (isParabolicEnabled) {
|
||||
var vIndex = abilityItem.abilities.shortcuts.shortcutIndex(abilityItem.itemIndex);
|
||||
abilityItem.abilities.parabolic.setCurrentParabolicItemIndex(vIndex);
|
||||
@ -85,16 +89,16 @@ Item {
|
||||
|
||||
restoreAnimation.stop();
|
||||
|
||||
if (isThinTooltipEnabled) {
|
||||
abilityItem.abilities.thinTooltip.show(abilityItem.tooltipVisualParent, abilityItem.thinTooltipText);
|
||||
}
|
||||
|
||||
if (isParabolicEnabled) {
|
||||
//! mouseX/Y can NOW be trusted because ParabolicEnterd event is triggered from View::Parabolic class
|
||||
var current = abilityItem.isHorizontal ? mouseX : mouseY;
|
||||
lastParabolicPos = current;
|
||||
calculateParabolicScales(current);
|
||||
}
|
||||
|
||||
if (isThinTooltipEnabled) {
|
||||
abilityItem.abilities.thinTooltip.show(abilityItem.tooltipVisualParent, abilityItem.thinTooltipText);
|
||||
}
|
||||
}
|
||||
|
||||
onParabolicMove: {
|
||||
|
@ -30,9 +30,6 @@ Item{
|
||||
|
||||
property int size: 1
|
||||
property int thickness: 64
|
||||
//border.width: 1
|
||||
//border.color: "green"
|
||||
//color: "transparent"
|
||||
|
||||
states:[
|
||||
State{
|
||||
|
Loading…
x
Reference in New Issue
Block a user