Commit 2260ebf9 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Add tooltips to timeline markers and guides.

Fixes #1403
parent b7437141
Pipeline #178970 passed with stage
in 5 minutes and 50 seconds
......@@ -563,6 +563,10 @@ Rectangle {
? (clipRoot.maxDuration - clipRoot.inPoint) * clipRoot.timeScale + (Math.round(model.frame / clipRoot.speed)) * clipRoot.timeScale - itemBorder.border.width
: (Math.round(model.frame / clipRoot.speed) - clipRoot.inPoint) * clipRoot.timeScale - itemBorder.border.width;
color: model.color
ToolTip.visible: markerArea.containsMouse
ToolTip.text: textMetrics.text
ToolTip.delay: 1000
ToolTip.timeout: 5000
}
Rectangle {
visible: mlabel.visible
......@@ -575,6 +579,7 @@ Rectangle {
color: model.color
MouseArea {
z: 10
id: markerArea
anchors.fill: parent
acceptedButtons: Qt.LeftButton
cursorShape: Qt.PointingHandCursor
......
......@@ -120,6 +120,10 @@ Item {
top: parent.top
left: parent.left
}
ToolTip.visible: guideArea.containsMouse
ToolTip.text: model.comment
ToolTip.delay: 1000
ToolTip.timeout: 5000
Rectangle {
// Shadow delimiting marker start
width: 1
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment