moment/src/qml/Base/HToolTip.qml

23 lines
487 B
QML
Raw Normal View History

2019-07-13 08:02:14 +10:00
import QtQuick 2.12
import QtQuick.Controls 2.12
ToolTip {
// Be sure to have a width and height set, to prevent the tooltip from
// going out of the window's boundaries
id: toolTip
2019-07-16 06:14:08 +10:00
delay: 150
padding: 0
enter: Transition {
HNumberAnimation { property: "opacity"; from: 0.0; to: 1.0 }
}
exit: Transition {
HNumberAnimation { property: "opacity"; from: 1.0; to: 0.0 }
}
2019-07-13 08:02:14 +10:00
TapHandler {
onTapped: { toolTip.hide() }
}
}