Skip to content

Commit

Permalink
Refs #21818: Add delay to label hover
Browse files Browse the repository at this point in the history
Signed-off-by: Carlosespicur <carlosespicur@proton.me>
  • Loading branch information
Carlosespicur committed Nov 21, 2024
1 parent 8c55f45 commit 4678bbe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qml/DomainGraphLayout.qml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ Item
readonly property int wheel_displacement_: 30
readonly property int timer_initial_ms_interval_: 200
readonly property int hover_text_offset_: 50
readonly property int hover_delay_: 250
readonly property string topic_color_: Theme.grey
readonly property string topic_color_alias_: "grey" // color alias for svg icons
readonly property string topic_color2_: Theme.midGrey
Expand Down Expand Up @@ -281,6 +282,7 @@ Item
ToolTip.text: modelData["alias"]
// Show hover only if text is elided
ToolTip.visible: topic_tag_mouse_area.containsMouse && text_metrics.width > topic_tag.width
ToolTip.delay: hover_delay_
}
}

Expand Down

0 comments on commit 4678bbe

Please sign in to comment.