Warning, /plasma/latte-dock/containment/package/contents/ui/abilities/privates/ThinTooltipPrivate.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2021 Michail Vourlakos <mvourlakos@gmail.com> 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 0006 import QtQuick 2.7 0007 0008 import org.kde.latte.abilities.host 0.1 as AbilityHost 0009 0010 AbilityHost.ThinTooltip { 0011 id: _tooltip 0012 property Item layouts: null 0013 property QtObject view: null 0014 0015 property bool showIsBlockedFromApplet: false 0016 0017 //! do not update during dragging/moving applets inConfigureAppletsMode 0018 readonly property bool isBindingUpdateEnabled: !(root.dragOverlay && root.dragOverlay.pressed) 0019 0020 Binding{ 0021 target: _tooltip 0022 property: "showIsBlockedFromApplet" 0023 when: isBindingUpdateEnabled 0024 value: { 0025 var grid; 0026 0027 for (var l=0; l<=2; ++l) { 0028 if (l===0) { 0029 grid = layouts.startLayout; 0030 } else if (l===1) { 0031 grid = layouts.mainLayout; 0032 } else if (l===2) { 0033 grid = layouts.endLayout; 0034 } 0035 0036 for (var i=0; i<grid.children.length; ++i){ 0037 var appletItem = grid.children[i]; 0038 if (appletItem.isExpanded) { 0039 return true; 0040 } 0041 0042 if (appletItem 0043 && appletItem.communicator 0044 && appletItem.communicator.thinTooltipIsSupported 0045 && appletItem.communicator.bridge.thinTooltip.client.local.showIsBlocked) { 0046 return true; 0047 } 0048 } 0049 } 0050 0051 return false; 0052 } 0053 } 0054 0055 }