mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2025-11-13 21:42:52 -05:00
fix: Replace text to icon in Reset button
This commit is contained in:
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import ChatView
|
import ChatView
|
||||||
|
import QtQuick.Controls
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
import UIControls
|
import UIControls
|
||||||
|
|
||||||
@ -162,11 +163,18 @@ Rectangle {
|
|||||||
top: parent.top
|
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
|
visible: root.isUserMessage && mouse.hovered
|
||||||
onClicked: function() {
|
onClicked: function() {
|
||||||
root.resetChatToMessage(root.messageIndex)
|
root.resetChatToMessage(root.messageIndex)
|
||||||
}
|
}
|
||||||
|
ToolTip.visible: hovered
|
||||||
|
ToolTip.text: qsTr("Reset chat to this message and edit")
|
||||||
|
ToolTip.delay: 500
|
||||||
}
|
}
|
||||||
|
|
||||||
component TextComponent : TextBlock {
|
component TextComponent : TextBlock {
|
||||||
|
|||||||
Reference in New Issue
Block a user