/*SPDX-FileCopyrightText: 2017 Roman Gilg <subdiff@gmail.com>SPDX-License-Identifier: GPL-2.0-or-later*/import QtQuick 2.7import QtQuick.Controls.Private 1.0MouseArea {anchors.fill: parentproperty string text: ""hoverEnabled: trueacceptedButtons: Qt.NoButtononEntered: timer.start()onExited: timer.killTooltip()onPositionChanged: timer.resetTooltip()Timer {id: timerinterval: 1000onTriggered: {Tooltip.showText(parent, Qt.point(mouseX, mouseY), text)}function killTooltip() {stop()Tooltip.hideText()}function resetTooltip() {restart()Tooltip.hideText()}}}