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
@@ -257,7 +257,7 @@ Inline w/ backslash and round brackets \\(e^{i\\pi} + 1 = 0\\)
}
StyledToolTip {
content: statusItem.description
text: statusItem.description
extraVisibleCondition: false
alternativeVisibleCondition: statusItem.containsMouse
}
@@ -41,7 +41,7 @@ Item { // Model indicator
id: toolTip
extraVisibleCondition: false
alternativeVisibleCondition: mouseArea.containsMouse // Show tooltip when hovered
content: root.tooltipText
text: root.tooltipText
}
}
}
@@ -164,7 +164,7 @@ Rectangle {
text: "visibility_off"
}
StyledToolTip {
content: Translation.tr("Not visible to model")
text: Translation.tr("Not visible to model")
}
}
@@ -191,7 +191,7 @@ Rectangle {
}
StyledToolTip {
content: Translation.tr("Copy")
text: Translation.tr("Copy")
}
}
AiMessageControlButton {
@@ -206,7 +206,7 @@ Rectangle {
}
}
StyledToolTip {
content: root.editing ? Translation.tr("Save") : Translation.tr("Edit")
text: root.editing ? Translation.tr("Save") : Translation.tr("Edit")
}
}
AiMessageControlButton {
@@ -217,7 +217,7 @@ Rectangle {
root.renderMarkdown = !root.renderMarkdown
}
StyledToolTip {
content: Translation.tr("View Markdown source")
text: Translation.tr("View Markdown source")
}
}
AiMessageControlButton {
@@ -227,7 +227,7 @@ Rectangle {
Ai.removeMessage(root.messageIndex)
}
StyledToolTip {
content: Translation.tr("Delete")
text: Translation.tr("Delete")
}
}
}
@@ -84,7 +84,7 @@ ColumnLayout {
}
}
StyledToolTip {
content: Translation.tr("Copy code")
text: Translation.tr("Copy code")
}
}
AiMessageControlButton {
@@ -114,7 +114,7 @@ ColumnLayout {
}
}
StyledToolTip {
content: Translation.tr("Save to Downloads")
text: Translation.tr("Save to Downloads")
}
}
}
@@ -41,7 +41,7 @@ Button {
}
StyledToolTip {
content: `${StringUtils.wordWrap(root.imageData.tags, root.maxTagStringLineLength)}`
text: `${StringUtils.wordWrap(root.imageData.tags, root.maxTagStringLineLength)}`
}
padding: 0