decouple TitleTooltipParent from root and taskItem

work/spdx
Michail Vourlakos 4 years ago
parent 815bd9d799
commit 9d0922a203

@ -20,12 +20,13 @@
import QtQuick 2.0 import QtQuick 2.0
import org.kde.plasma.plasmoid 2.0
import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.core 2.0 as PlasmaCore
Item{ Item{
id: visual id: visual
width: root.vertical ? thickness : size width: abilityItem.isVertical ? thickness : size
height: root.vertical ? size : thickness height: abilityItem.isVertical ? size : thickness
property int size: 1 property int size: 1
property int thickness: 64 property int thickness: 64
@ -36,7 +37,7 @@ Item{
states:[ states:[
State{ State{
name: "bottom" name: "bottom"
when: root.location === PlasmaCore.Types.BottomEdge when: plasmoid.location === PlasmaCore.Types.BottomEdge
AnchorChanges{ AnchorChanges{
target: visual; target: visual;
@ -47,7 +48,7 @@ Item{
}, },
State{ State{
name: "top" name: "top"
when: root.location === PlasmaCore.Types.TopEdge when: plasmoid.location === PlasmaCore.Types.TopEdge
AnchorChanges{ AnchorChanges{
target:visual; target:visual;
@ -58,7 +59,7 @@ Item{
}, },
State{ State{
name: "left" name: "left"
when: root.location === PlasmaCore.Types.LeftEdge when: plasmoid.location === PlasmaCore.Types.LeftEdge
AnchorChanges{ AnchorChanges{
target: visual; target: visual;
@ -69,7 +70,7 @@ Item{
}, },
State{ State{
name: "right" name: "right"
when: root.location === PlasmaCore.Types.RightEdge when: plasmoid.location === PlasmaCore.Types.RightEdge
AnchorChanges{ AnchorChanges{
target: visual; target: visual;

Loading…
Cancel
Save