Commit fe9f6649 authored by Nate Graham's avatar Nate Graham
Browse files

wallpapers/slideshowpackage: fix tooltip so it actually appears

We had disabled hover on the list item, so it would never become
visible. In addition, its visibility condition was wrong as we only want
it to become visible for list items that have elided text.

BUG: 459052
FIXED-IN: 5.26
parent c67f90a3
Pipeline #231991 passed with stage
in 14 minutes and 10 seconds
......@@ -191,8 +191,11 @@ ColumnLayout {
hoverEnabled: false
contentItem: Kirigami.BasicListItem {
width: slidePathsView.width - baseListItem.overlayWidth
// Don't need a highlight or hover effects
hoverEnabled: false
// Don't want a background highlight effect, but we can't just
// set hoverEnabled to false, since then the tooltip will
// never appear!
activeBackgroundColor: "transparent"
activeTextColor: Kirigami.Theme.textColor
separatorVisible: false
// Header: the folder
......@@ -207,7 +210,7 @@ ColumnLayout {
}
QQC2.ToolTip.text: modelData
QQC2.ToolTip.visible: hovered
QQC2.ToolTip.visible: hovered && (labelItem.truncated || subtitleItem.truncated)
QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
}
......
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