/*SPDX-FileCopyrightText: 2020 Tranter Madi <trmdi@yandex.com>SPDX-License-Identifier: LGPL-2.0-or-later*/pragma ComponentBehavior: Boundimport QtQuickMouseArea {id: rootrequired property Text textItemonTextItemChanged: {textItem.parent = this;textItem.width = Qt.binding(() => width);}clip: textItem.elide === Text.ElideNonehoverEnabled: trueonContainsMouseChanged: {if (!containsMouse) {state = "";}}Timer {id: timerinterval: 500running: root.containsMouseonTriggered: {if (root.width < root.textItem.implicitWidth) {root.state = "ShowRight";}}}states: [State {name: ""PropertyChanges {root.textItem.x: 0}},State {name: "ShowRight"PropertyChanges {root.textItem.x: root.width - root.textItem.implicitWidth}}]transitions: Transition {to: "ShowRight"NumberAnimation {target: root.textItemproperties: "x"easing.type: Easing.Linearduration: Math.abs(root.textItem.implicitWidth - root.width) * 25}}}