tooltips: use builtin text prop, fix crash (#1956)

This commit is contained in:
end-4
2025-09-20 11:55:38 +02:00
parent 3a01dad945
commit 429cb50ff7
36 changed files with 116 additions and 103 deletions
@@ -24,7 +24,7 @@ Revealer { // Scroll hint
// StyledToolTip {
// extraVisibleCondition: tooltipText.length > 0
// content: tooltipText
// text: tooltipText
// }
ColumnLayout {
@@ -31,10 +31,10 @@ MouseArea {
event.accepted = true;
}
onEntered: {
tooltip.content = item.tooltipTitle.length > 0 ? item.tooltipTitle
tooltip.text = item.tooltipTitle.length > 0 ? item.tooltipTitle
: (item.title.length > 0 ? item.title : item.id);
if (item.tooltipDescription.length > 0) tooltip.content += " • " + item.tooltipDescription;
if (Config.options.bar.tray.showItemId) tooltip.content += "\n[" + item.id + "]";
if (item.tooltipDescription.length > 0) tooltip.text += " • " + item.tooltipDescription;
if (Config.options.bar.tray.showItemId) tooltip.text += "\n[" + item.id + "]";
}
Loader {