Warning, /plasma/latte-dock/declarativeimports/abilities/items/basicitem/TitleTooltipParent.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2017 Smith AR <audoban@openmailbox.org> 0003 SPDX-FileCopyrightText: 2017 Michail Vourlakos <mvourlakos@gmail.com> 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 import QtQuick 2.7 0008 0009 import org.kde.plasma.plasmoid 2.0 0010 import org.kde.plasma.core 2.0 as PlasmaCore 0011 0012 Item{ 0013 id: visual 0014 //used from LatteCore.Dialog Tooltips in order to be anchored properly to their visual parent 0015 signal anchoredTooltipPositionChanged(); 0016 0017 width: abilityItem.isVertical ? thickness : size 0018 height: abilityItem.isVertical ? size : thickness 0019 0020 property int size: 1 0021 property int thickness: 64 0022 0023 Connections { 0024 target: abilityItem 0025 enabled: abilityItem.abilities.parabolic.isEnabled && abilityItem.parabolicAreaContainsMouse 0026 onParabolicAreaLastMousePosChanged: visual.anchoredTooltipPositionChanged(); 0027 } 0028 0029 states:[ 0030 State{ 0031 name: "bottom" 0032 when: abilityItem.location === PlasmaCore.Types.BottomEdge 0033 0034 AnchorChanges{ 0035 target: visual; 0036 anchors.horizontalCenter: parent.horizontalCenter; 0037 anchors.verticalCenter: undefined; 0038 anchors.right: undefined; anchors.left: undefined; anchors.top: undefined; anchors.bottom: parent.bottom; 0039 } 0040 }, 0041 State{ 0042 name: "top" 0043 when: abilityItem.location === PlasmaCore.Types.TopEdge 0044 0045 AnchorChanges{ 0046 target:visual; 0047 anchors.horizontalCenter: parent.horizontalCenter; 0048 anchors.verticalCenter: undefined; 0049 anchors.right: undefined; anchors.left: undefined; anchors.top: parent.top; anchors.bottom: undefined; 0050 } 0051 }, 0052 State{ 0053 name: "left" 0054 when: abilityItem.location === PlasmaCore.Types.LeftEdge 0055 0056 AnchorChanges{ 0057 target: visual; 0058 anchors.horizontalCenter: undefined; 0059 anchors.verticalCenter: parent.verticalCenter; 0060 anchors.right: undefined; anchors.left: parent.left; anchors.top: undefined; anchors.bottom: undefined; 0061 } 0062 }, 0063 State{ 0064 name: "right" 0065 when: abilityItem.location === PlasmaCore.Types.RightEdge 0066 0067 AnchorChanges{ 0068 target: visual; 0069 anchors.horizontalCenter: undefined; 0070 anchors.verticalCenter: parent.verticalCenter; 0071 anchors.right: parent.right; anchors.left: undefined; anchors.top: undefined; anchors.bottom: undefined; 0072 } 0073 } 0074 ] 0075 }