/*SPDX-FileCopyrightText: 2020 Tranter Madi <trmdi@yandex.com>SPDX-License-Identifier: LGPL-2.0-or-later*/import QtQuick 2.6MouseArea {id: textWrapperdefault property Text textItemclip: textItem.elide === Text.ElideNonehoverEnabled: trueonContainsMouseChanged: {if (!containsMouse) {state = ""}}Timer {id: timerinterval: 500running: textWrapper.containsMouseonTriggered: {if (textWrapper.width < textItem.implicitWidth) {textWrapper.state = "ShowRight"}}}states: [State {name: ""PropertyChanges { target: textItem; x: 0 }},State {name: "ShowRight"PropertyChanges { target: textItem; x: textWrapper.width - textItem.implicitWidth }}]transitions: Transition {to: "ShowRight"NumberAnimation {target: textItem; properties: "x";easing.type: Easing.Linear;duration: Math.abs(textItem.implicitWidth - textWrapper.width)*25}}}