ai: gemini: annotation sources

This commit is contained in:
end-4
2025-05-10 10:56:35 +02:00
parent 0af7924be9
commit f93cca8a13
6 changed files with 130 additions and 2 deletions
@@ -20,6 +20,7 @@ Rectangle {
property int messageIndex
property var messageData
property var messageInputField
property string faviconDownloadPath
property real messagePadding: 7
property real contentSpacing: 3
@@ -74,7 +75,7 @@ Rectangle {
}
}
ColumnLayout {
ColumnLayout { // Main layout of the whole thing
id: columnLayout
anchors.left: parent.left
@@ -228,7 +229,7 @@ Rectangle {
}
}
ColumnLayout {
ColumnLayout { // Message content
id: messageContentColumnLayout
spacing: 0
@@ -257,6 +258,25 @@ Rectangle {
}
}
Flow { // Annotations
id: annotationFlowLayout
visible: root.messageData?.annotationSources?.length > 0
spacing: 5
Layout.fillWidth: true
Layout.alignment: Qt.AlignLeft
Repeater {
model: root.messageData.annotationSources
delegate: AnnotationSourceButton {
id: annotationButton
faviconDownloadPath: root.faviconDownloadPath
displayText: modelData.text
url: modelData.url
}
}
}
}
}