2019-07-21 22:33:52 +02:00
|
|
|
import QtQuick 2.0
|
2020-11-27 19:09:47 +01:00
|
|
|
import org.kde.plasma.components 3.0 as PlasmaComponents3
|
2019-07-21 22:33:52 +02:00
|
|
|
|
|
|
|
MouseArea {
|
|
|
|
property alias interval: timer.interval
|
2020-11-27 19:09:47 +01:00
|
|
|
property alias tooltip: tooltip.text
|
2019-07-21 22:33:52 +02:00
|
|
|
hoverEnabled: true
|
|
|
|
Timer {
|
|
|
|
id: timer
|
|
|
|
interval: 1000
|
|
|
|
running: parent.containsMouse && parent.tooltip.length !== 0
|
2020-11-27 19:09:47 +01:00
|
|
|
onTriggered: tooltip.open()
|
|
|
|
}
|
|
|
|
PlasmaComponents3.ToolTip {
|
|
|
|
id: tooltip
|
2019-07-21 22:33:52 +02:00
|
|
|
}
|
|
|
|
}
|