Skip to content

Commit

Permalink
fix: only show tooltip when truncated
Browse files Browse the repository at this point in the history
  • Loading branch information
18202781743 committed May 8, 2024
1 parent 215456b commit 4ed4ca1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion qml/IconItemDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ Control {
}
ToolTip.text: root.text
ToolTip.delay: 1000
ToolTip.visible: hovered
ToolTip.visible: hovered && iconItemLabel.truncated
background: ButtonPanel {
button: parent
outsideBorderColor: null
Expand Down
2 changes: 1 addition & 1 deletion qml/windowed/IconItemDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Control {
}
ToolTip.text: root.text
ToolTip.delay: 1000
ToolTip.visible: hovered
ToolTip.visible: hovered && iconItemLabel.truncated
background: ItemBackground {
radius: 8
button: iconButton
Expand Down

0 comments on commit 4ed4ca1

Please sign in to comment.