From 6e9db1552c85e55f8af649b2fd01504fabfd9f54 Mon Sep 17 00:00:00 2001 From: Petr Mironychev <9195189+Palm1r@users.noreply.github.com> Date: Thu, 13 Nov 2025 02:23:45 +0100 Subject: [PATCH] fix: Replace text to icon in Reset button --- ChatView/qml/ChatItem.qml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ChatView/qml/ChatItem.qml b/ChatView/qml/ChatItem.qml index 6bba114..e4a3416 100644 --- a/ChatView/qml/ChatItem.qml +++ b/ChatView/qml/ChatItem.qml @@ -19,6 +19,7 @@ import QtQuick import ChatView +import QtQuick.Controls import QtQuick.Layouts import UIControls @@ -162,11 +163,18 @@ Rectangle { top: parent.top } - text: qsTr("ResetTo") + icon { + source: "qrc:/qt/qml/ChatView/icons/undo-changes-button.svg" + height: 15 + width: 15 + } visible: root.isUserMessage && mouse.hovered onClicked: function() { root.resetChatToMessage(root.messageIndex) } + ToolTip.visible: hovered + ToolTip.text: qsTr("Reset chat to this message and edit") + ToolTip.delay: 500 } component TextComponent : TextBlock {